1 | <?php |
||
10 | trait IdTrait |
||
11 | { |
||
12 | /** |
||
13 | * @var int Primary key |
||
14 | * |
||
15 | * @ORM\Id |
||
16 | * @ORM\Column(type="integer") |
||
17 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
18 | */ |
||
19 | protected $id; |
||
20 | |||
21 | /** |
||
22 | * Return primary key identifier. |
||
23 | * |
||
24 | * @return int |
||
25 | */ |
||
26 | public function getId() |
||
30 | |||
31 | /** |
||
32 | * Sets primary key identifier. |
||
33 | * |
||
34 | * @param int $id |
||
35 | * |
||
36 | * @return object |
||
37 | */ |
||
38 | public function setId($id) |
||
44 | } |
||
45 |