2018-07-18 11:35:27 -04:00
|
|
|
<?php declare(strict_types=1);
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2018-02-14 16:42:39 -05:00
|
|
|
namespace App\Entity;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 14:00:50 -05:00
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
2017-11-30 15:06:13 -05:00
|
|
|
trait FlashTrait
|
|
|
|
{
|
|
|
|
use PurchasePriceTrait;
|
|
|
|
|
2022-02-18 11:34:25 -05:00
|
|
|
#[ORM\Column(name: 'brand', type: 'string', nullable: false)]
|
|
|
|
private readonly string $brand;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-18 11:34:25 -05:00
|
|
|
#[ORM\Column(name: 'model', type: 'string', nullable: false)]
|
|
|
|
private readonly string $model;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'is_auto_flash', type: 'boolean', nullable: false)]
|
2022-02-17 14:00:50 -05:00
|
|
|
private bool $isAutoFlash = false;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'is_ttl', type: 'boolean', nullable: false)]
|
2022-02-17 14:00:50 -05:00
|
|
|
private bool $isTtl = false;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'ttl_type', type: 'string', nullable: false)]
|
2022-02-17 14:00:50 -05:00
|
|
|
private string $ttlType = 'N / A';
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'is_p_ttl', type: 'boolean', nullable: false)]
|
2022-02-17 14:00:50 -05:00
|
|
|
private bool $isPTtl = false;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'p_ttl_type', type: 'string', nullable: false)]
|
2022-02-17 14:00:50 -05:00
|
|
|
private string $pTtlType = 'N / A';
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-18 11:34:25 -05:00
|
|
|
#[ORM\Column(name: 'guide_number', type: 'string', nullable: true)]
|
|
|
|
private ?string $guideNumber = '';
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 15:10:57 -05:00
|
|
|
#[ORM\Column(name: 'batteries', type: 'string', nullable: false)]
|
2022-02-17 14:00:50 -05:00
|
|
|
private string $batteries = '4x AA';
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-18 11:34:25 -05:00
|
|
|
#[ORM\Column(name: 'notes', type: 'text', nullable: true)]
|
|
|
|
private readonly ?string $notes;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-18 11:34:25 -05:00
|
|
|
#[ORM\Column(name: 'serial', type: 'string', nullable: true)]
|
|
|
|
private readonly ?string $serial;
|
2017-11-30 15:06:13 -05:00
|
|
|
|
2022-02-17 14:00:50 -05:00
|
|
|
public function getId(): int
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set brand
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2022-02-18 11:34:25 -05:00
|
|
|
public function setBrand(string $brand): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$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 boolean $isAutoFlash
|
|
|
|
*
|
|
|
|
* @return Flash
|
|
|
|
*/
|
|
|
|
public function setIsAutoFlash($isAutoFlash)
|
|
|
|
{
|
|
|
|
$this->isAutoFlash = $isAutoFlash;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get isAutoFlash
|
|
|
|
*
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
public function getIsAutoFlash()
|
|
|
|
{
|
|
|
|
return $this->isAutoFlash;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set isTtl
|
|
|
|
*
|
|
|
|
* @param boolean $isTtl
|
|
|
|
*
|
|
|
|
* @return Flash
|
|
|
|
*/
|
|
|
|
public function setIsTtl($isTtl)
|
|
|
|
{
|
|
|
|
$this->isTtl = $isTtl;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get isTtl
|
|
|
|
*
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
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 boolean $isPTtl
|
|
|
|
*
|
|
|
|
* @return Flash
|
|
|
|
*/
|
|
|
|
public function setIsPTtl($isPTtl)
|
|
|
|
{
|
|
|
|
$this->isPTtl = $isPTtl;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get isPTtl
|
|
|
|
*
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
public function getIsPTtl()
|
|
|
|
{
|
|
|
|
return $this->isPTtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set pTtlType
|
|
|
|
*
|
|
|
|
* @param string $pTtlType
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
public function setPTtlType($pTtlType): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$this->pTtlType = $pTtlType;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get pTtlType
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getPTtlType()
|
|
|
|
{
|
|
|
|
return $this->pTtlType;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set guideNumber
|
|
|
|
*
|
|
|
|
* @param string $guideNumber
|
|
|
|
*
|
2022-02-17 14:00:50 -05:00
|
|
|
* @return self
|
2017-11-30 15:06:13 -05:00
|
|
|
*/
|
|
|
|
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
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
public function setBatteries($batteries): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$this->batteries = $batteries;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get batteries
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getBatteries()
|
|
|
|
{
|
|
|
|
return $this->batteries;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set notes
|
|
|
|
*
|
|
|
|
* @param string $notes
|
|
|
|
*
|
|
|
|
* @return Flash
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
public function setNotes($notes): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$this->notes = $notes;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get notes
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getNotes()
|
|
|
|
{
|
|
|
|
return $this->notes;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set serial
|
|
|
|
*
|
|
|
|
* @param string $serial
|
|
|
|
*
|
|
|
|
* @return Flash
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
public function setSerial($serial): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$this->serial = $serial;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get serial
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getSerial()
|
|
|
|
{
|
|
|
|
return $this->serial;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set formerlyOwned
|
|
|
|
*
|
|
|
|
* @param boolean $formerlyOwned
|
|
|
|
*
|
|
|
|
* @return Flash
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
public function setFormerlyOwned($formerlyOwned): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$this->formerlyOwned = $formerlyOwned;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get formerlyOwned
|
|
|
|
*
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
public function getFormerlyOwned()
|
|
|
|
{
|
|
|
|
return $this->formerlyOwned;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set received
|
|
|
|
*
|
|
|
|
* @param boolean $received
|
|
|
|
*
|
|
|
|
* @return Flash
|
|
|
|
*/
|
2022-02-17 14:00:50 -05:00
|
|
|
public function setReceived($received): self
|
2017-11-30 15:06:13 -05:00
|
|
|
{
|
|
|
|
$this->received = $received;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get received
|
|
|
|
*
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
public function getReceived()
|
|
|
|
{
|
|
|
|
return $this->received;
|
|
|
|
}
|
|
|
|
}
|