| 1 | <?php |
||
| 7 | abstract class DDC3303Person |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @Id |
||
| 11 | * @Column(type="integer") |
||
| 12 | * @GeneratedValue(strategy="AUTO") |
||
| 13 | * |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $id; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @Column(type="string") |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $name; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @Embedded(class="DDC3303Address") |
||
| 27 | * |
||
| 28 | * @var DDC3303Address |
||
| 29 | */ |
||
| 30 | private $address; |
||
| 31 | |||
| 32 | public function __construct($name, DDC3303Address $address) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | public function getId() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getName() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return DDC3303Address |
||
| 56 | */ |
||
| 57 | public function getAddress() |
||
| 61 | } |
||
| 62 |