| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function __construct($propertyName) |
||
| 22 | { |
||
| 23 | if (!is_string($propertyName)) { |
||
| 24 | throw new InvalidArgumentException("Property name must be a valid string."); |
||
| 25 | } |
||
| 26 | |||
| 27 | if (empty($propertyName)) { |
||
| 28 | throw new InvalidArgumentException("Property name can't be empty."); |
||
| 29 | } |
||
| 30 | |||
| 31 | $this->propertyName = $propertyName; |
||
| 32 | } |
||
| 33 | |||
| 55 |