Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function __construct($name, Association $association = null) |
||
28 | { |
||
29 | if (empty($name)) { |
||
30 | throw new InvalidArgumentException("Property name can't be empty."); |
||
31 | } |
||
32 | |||
33 | if (!is_string($name)) { |
||
34 | throw new InvalidArgumentException("Property name must be a valid string."); |
||
35 | } |
||
36 | |||
37 | $this->name = $name; |
||
38 | $this->association = $association; |
||
39 | } |
||
40 | |||
76 |