1 | <?php |
||
10 | final class Property |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $name; |
||
16 | |||
17 | /** |
||
18 | * @var null|Association |
||
19 | */ |
||
20 | private $association; |
||
21 | |||
22 | /** |
||
23 | * @param string $name |
||
24 | * @param null|Association $association |
||
25 | * @throws InvalidArgumentException |
||
26 | */ |
||
27 | public function __construct($name, Association $association = null) |
||
40 | |||
41 | public function __toString() |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | * |
||
49 | * @api |
||
50 | */ |
||
51 | public function getName() |
||
55 | |||
56 | /** |
||
57 | * @return bool |
||
58 | * |
||
59 | * @api |
||
60 | */ |
||
61 | public function isAssociated() |
||
65 | |||
66 | /** |
||
67 | * @return null|Association |
||
68 | * |
||
69 | * @api |
||
70 | */ |
||
71 | public function getAssociation() |
||
75 | } |
||
76 |