| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 3.1406 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 25 | public function __construct($values = [], ?string $policy = null) |
|
| 27 | { |
||
| 28 | 25 | $this->loadAnnotationParameters(get_defined_vars()); |
|
| 29 | |||
| 30 | $this->policy = strtoupper($this->policy); |
||
|
|
|||
| 31 | 25 | ||
| 32 | if (self::NONE !== $this->policy && self::ALL !== $this->policy) { |
||
| 33 | throw new RuntimeException('Exclusion policy must either be "ALL", or "NONE".'); |
||
| 34 | } |
||
| 37 |