1 | <?php |
||
11 | * @ORM\Table(name="doctrine_orm_module_category") |
||
12 | */ |
||
13 | class Category |
||
14 | { |
||
15 | /** |
||
16 | * @ORM\Id |
||
17 | * @ORM\Column(type="integer"); |
||
18 | * @ORM\GeneratedValue(strategy="AUTO") |
||
19 | */ |
||
20 | protected ?int $id; |
||
|
|||
21 | |||
22 | /** @ORM\Column(type="string", nullable=true) */ |
||
23 | protected string $name; |
||
24 | |||
25 | public function getId() : ?int |
||
26 | { |
||
27 | return $this->id; |
||
28 | } |
||
29 | |||
30 | public function setName(string $name) : self |
||
31 | { |
||
32 | $this->name = $name; |
||
33 | |||
34 | return $this; |
||
35 | } |
||
36 | |||
37 | public function getName() : string |
||
38 | { |
||
39 | return $this->name; |
||
40 | } |
||
41 | } |
||
42 |