We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| 1 | <?php |
||
| 10 | 16 | public function __construct($reference, Validatable $validator = null, $mandatory = true) |
|
| 11 | { |
||
| 12 | 16 | if (!is_string($reference) || empty($reference)) { |
|
| 13 | 3 | throw new ComponentException('Invalid attribute/property name'); |
|
| 14 | } |
||
| 15 | |||
| 16 | 13 | parent::__construct($reference, $validator, $mandatory); |
|
| 17 | 13 | } |
|
| 18 | |||
| 32 |