| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 2 | public function getArguments( RequestInterface $request ) { |
|
| 46 | 2 | $condition = $this->getAttribute( 'condition' ); |
|
| 47 | |||
| 48 | 2 | if ( ! $condition instanceof ConditionInterface ) { |
|
| 49 | 1 | throw new ConfigurationException( 'Route does not have a condition.' ); |
|
| 50 | } |
||
| 51 | |||
| 52 | 1 | return $condition->getArguments( $request ); |
|
| 53 | } |
||
| 55 |