Conditions | 4 |
Paths | 6 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function __construct(array $values) |
||
27 | { |
||
28 | if (isset($values['value'])) { |
||
29 | $values['events'] = $values['value']; |
||
30 | } |
||
31 | if (!isset($values['events'])) { |
||
32 | return; |
||
33 | } |
||
34 | |||
35 | $this->events = is_array($values['events']) ? $values['events'] : array_map('trim', explode(',', $values['events'])); |
||
36 | |||
37 | $this->events = array_filter($this->events); |
||
38 | } |
||
39 | } |
||
40 |