| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function transform(array $values): Frequency |
||
| 16 | { |
||
| 17 | 1 | $this->validate($values); |
|
| 18 | |||
| 19 | try { |
||
| 20 | 1 | return new Frequency($values[0]); |
|
| 21 | 1 | } catch (InvalidFrequencyOptionException $e) { |
|
| 22 | 1 | throw new InvalidRruleException(FreqExtractor::RRULE_PARAMETER, (string) $values[0]); |
|
| 23 | } |
||
| 36 |