Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function extract($rRule) |
||
19 | { |
||
20 | if (preg_match(sprintf('/%s=%s/', $this::RRULE_PARAMETER, $this::RRULE_PATTERN), $rRule, $matches)) { |
||
21 | return array_slice($matches, 1); |
||
22 | } |
||
23 | |||
24 | $this->throwExceptionOnInvalidParameter($rRule, $this::RRULE_PARAMETER); |
||
25 | |||
26 | return null; |
||
27 | } |
||
28 | |||
42 |