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