1 | <?php |
||
18 | class Person |
||
19 | { |
||
20 | /** |
||
21 | * @var int |
||
22 | * |
||
23 | * @ORM\Id |
||
24 | * @ORM\Column(type="integer") |
||
25 | * @ORM\GeneratedValue() |
||
26 | */ |
||
27 | protected $id; |
||
28 | /** |
||
29 | * @var string |
||
30 | * @ORM\Column(type="string") |
||
31 | */ |
||
32 | protected $name; |
||
33 | |||
34 | /** |
||
35 | * Person constructor. |
||
36 | * |
||
37 | * @param string $name |
||
38 | */ |
||
39 | public function __construct(string $name) |
||
43 | |||
44 | /** |
||
45 | * @return int |
||
46 | */ |
||
47 | public function getId(): int |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getName(): string |
||
59 | |||
60 | /** |
||
61 | * @param string $name |
||
62 | */ |
||
63 | public function setName(string $name) |
||
67 | } |
||
68 |