| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 2 | public function getConfiguration($typeName, $week, $seance) |
|
| 48 | { |
||
| 49 | 2 | $configuration = $this->configurationManager->findConfiguration($typeName, $week, $seance); |
|
| 50 | 2 | if (null === $configuration) { |
|
| 51 | 1 | throw new ConfigurationNotFoundException( |
|
| 52 | 1 | sprintf( |
|
| 53 | 1 | 'Configuration with week: %s, seance: %s and type:%s is not available', |
|
| 54 | 1 | $week, |
|
| 55 | 1 | $seance, |
|
| 56 | $typeName |
||
| 57 | 1 | ) |
|
| 58 | 1 | ); |
|
| 59 | } |
||
| 60 | |||
| 61 | 1 | return $configuration; |
|
| 62 | } |
||
| 63 | } |
||
| 64 |