| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 31 | public function configure(array $config) |
|
| 32 | {
|
||
| 33 | 31 | $this->setName($config[0] ?? 'unknown'); |
|
| 34 | |||
| 35 | 31 | if (count($config) <= 1) {
|
|
| 36 | 4 | throw new \InvalidArgumentException("Minimum format must be satisfied: ['{$this->getName()}', <expression1>, ..., <expressionN>]");
|
|
| 37 | } |
||
| 38 | |||
| 39 | 27 | $this->config = $config; |
|
| 40 | } |
||
| 41 | } |