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