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