355 lines
5.8 KiB
PHP
355 lines
5.8 KiB
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
trait FlashTrait
|
|
{
|
|
use PurchasePriceTrait;
|
|
|
|
#[ORM\Column(name: 'brand', type: 'string', nullable: FALSE)]
|
|
private readonly string $brand;
|
|
|
|
#[ORM\Column(name: 'model', type: 'string', nullable: FALSE)]
|
|
private readonly string $model;
|
|
|
|
#[ORM\Column(name: 'is_auto_flash', type: 'boolean', nullable: FALSE)]
|
|
private bool $isAutoFlash = FALSE;
|
|
|
|
#[ORM\Column(name: 'is_ttl', type: 'boolean', nullable: FALSE)]
|
|
private bool $isTtl = FALSE;
|
|
|
|
#[ORM\Column(name: 'ttl_type', type: 'string', nullable: FALSE)]
|
|
private string $ttlType = 'N / A';
|
|
|
|
#[ORM\Column(name: 'is_p_ttl', type: 'boolean', nullable: FALSE)]
|
|
private bool $isPTtl = FALSE;
|
|
|
|
#[ORM\Column(name: 'p_ttl_type', type: 'string', nullable: FALSE)]
|
|
private string $pTtlType = 'N / A';
|
|
|
|
#[ORM\Column(name: 'guide_number', type: 'string', nullable: TRUE)]
|
|
private ?string $guideNumber = '';
|
|
|
|
#[ORM\Column(name: 'batteries', type: 'string', nullable: FALSE)]
|
|
private string $batteries = '4x AA';
|
|
|
|
#[ORM\Column(name: 'notes', type: 'text', nullable: TRUE)]
|
|
private readonly ?string $notes;
|
|
|
|
#[ORM\Column(name: 'serial', type: 'string', nullable: TRUE)]
|
|
private readonly ?string $serial;
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set brand
|
|
*/
|
|
public function setBrand(string $brand): self
|
|
{
|
|
$this->brand = $brand;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get brand
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBrand()
|
|
{
|
|
return $this->brand;
|
|
}
|
|
|
|
/**
|
|
* Set model
|
|
*
|
|
* @param string $model
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setModel($model)
|
|
{
|
|
$this->model = $model;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get model
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getModel()
|
|
{
|
|
return $this->model;
|
|
}
|
|
|
|
/**
|
|
* Set isAutoFlash
|
|
*
|
|
* @param bool $isAutoFlash
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setIsAutoFlash($isAutoFlash)
|
|
{
|
|
$this->isAutoFlash = $isAutoFlash;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get isAutoFlash
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getIsAutoFlash()
|
|
{
|
|
return $this->isAutoFlash;
|
|
}
|
|
|
|
/**
|
|
* Set isTtl
|
|
*
|
|
* @param bool $isTtl
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setIsTtl($isTtl)
|
|
{
|
|
$this->isTtl = $isTtl;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get isTtl
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getIsTtl()
|
|
{
|
|
return $this->isTtl;
|
|
}
|
|
|
|
/**
|
|
* Set ttlType
|
|
*
|
|
* @param string $ttlType
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setTtlType($ttlType)
|
|
{
|
|
$this->ttlType = $ttlType;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get ttlType
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getTtlType()
|
|
{
|
|
return $this->ttlType;
|
|
}
|
|
|
|
/**
|
|
* Set isPTtl
|
|
*
|
|
* @param bool $isPTtl
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setIsPTtl($isPTtl)
|
|
{
|
|
$this->isPTtl = $isPTtl;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get isPTtl
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getIsPTtl()
|
|
{
|
|
return $this->isPTtl;
|
|
}
|
|
|
|
/**
|
|
* Set pTtlType
|
|
*
|
|
* @param string $pTtlType
|
|
*/
|
|
public function setPTtlType($pTtlType): self
|
|
{
|
|
$this->pTtlType = $pTtlType;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get pTtlType
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getPTtlType()
|
|
{
|
|
return $this->pTtlType;
|
|
}
|
|
|
|
/**
|
|
* Set guideNumber
|
|
*
|
|
* @param string $guideNumber
|
|
*
|
|
* @return self
|
|
*/
|
|
public function setGuideNumber($guideNumber)
|
|
{
|
|
$this->guideNumber = $guideNumber;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get guideNumber
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getGuideNumber()
|
|
{
|
|
return $this->guideNumber;
|
|
}
|
|
|
|
/**
|
|
* Set batteries
|
|
*
|
|
* @param string $batteries
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setBatteries($batteries): self
|
|
{
|
|
$this->batteries = $batteries;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get batteries
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBatteries()
|
|
{
|
|
return $this->batteries;
|
|
}
|
|
|
|
/**
|
|
* Set notes
|
|
*
|
|
* @param string $notes
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setNotes($notes): self
|
|
{
|
|
$this->notes = $notes;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get notes
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getNotes()
|
|
{
|
|
return $this->notes;
|
|
}
|
|
|
|
/**
|
|
* Set serial
|
|
*
|
|
* @param string $serial
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setSerial($serial): self
|
|
{
|
|
$this->serial = $serial;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get serial
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSerial()
|
|
{
|
|
return $this->serial;
|
|
}
|
|
|
|
/**
|
|
* Set formerlyOwned
|
|
*
|
|
* @param bool $formerlyOwned
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setFormerlyOwned($formerlyOwned): self
|
|
{
|
|
$this->formerlyOwned = $formerlyOwned;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get formerlyOwned
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getFormerlyOwned()
|
|
{
|
|
return $this->formerlyOwned;
|
|
}
|
|
|
|
/**
|
|
* Set received
|
|
*
|
|
* @param bool $received
|
|
*
|
|
* @return Flash
|
|
*/
|
|
public function setReceived($received): self
|
|
{
|
|
$this->received = $received;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get received
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function getReceived()
|
|
{
|
|
return $this->received;
|
|
}
|
|
}
|