Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class CmsProduct |
||
16 | { |
||
17 | /** |
||
18 | * @ORM\Column(type="integer") |
||
19 | * @ORM\Id @ORM\GeneratedValue |
||
20 | */ |
||
21 | public $id; |
||
22 | |||
23 | /** @ORM\Column(type="string") */ |
||
24 | public $name; |
||
25 | |||
26 | /** @ORM\Column(type="decimal") */ |
||
27 | public $price; |
||
28 | |||
29 | /** @ORM\Column(type="datetime") */ |
||
30 | public $created_at; |
||
31 | |||
32 | public function getId() |
||
33 | { |
||
34 | return $this->id; |
||
35 | } |
||
36 | |||
37 | public function getPrice() |
||
38 | { |
||
39 | return $this->price; |
||
40 | } |
||
41 | |||
42 | public function setPrice(float $price) |
||
45 | } |
||
46 | } |
||
47 |