| Total Complexity | 5 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Stock |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @ORM\Id @ORM\Column(type="integer") @ORM\GeneratedValue |
||
| 15 | * @var integer|null |
||
| 16 | **/ |
||
| 17 | private $id; |
||
| 18 | /** |
||
| 19 | * @ORM\Column(type="float") |
||
| 20 | * @var float |
||
| 21 | **/ |
||
| 22 | private $qty; |
||
| 23 | /** |
||
| 24 | * @ORM\Column(type="datetime") |
||
| 25 | * @var \DateTime |
||
| 26 | **/ |
||
| 27 | private $createdAt; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return int|null |
||
| 31 | */ |
||
| 32 | public function getId(): ?int |
||
| 33 | { |
||
| 34 | return $this->id; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return float |
||
| 39 | */ |
||
| 40 | public function getQty(): float |
||
| 41 | { |
||
| 42 | return $this->qty; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param float $qty |
||
| 47 | */ |
||
| 48 | public function setQty(float $qty): void |
||
| 49 | { |
||
| 50 | $this->qty = $qty; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return \DateTime |
||
| 55 | */ |
||
| 56 | public function getCreatedAt(): \DateTime |
||
| 57 | { |
||
| 58 | return $this->createdAt; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param \DateTime $createdAt |
||
| 63 | */ |
||
| 64 | public function setCreatedAt(\DateTime $createdAt): void |
||
| 67 | } |
||
| 68 | } |
||
| 69 |