| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct($eventNames) |
||
| 31 | { |
||
| 32 | foreach ($eventNames as $eventName) { |
||
| 33 | if (!is_string($eventName) || empty($eventName)) { |
||
| 34 | throw InvalidArgumentException::invalidType('non-empty string', 'eventName', $eventName); |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->eventNames[] = $eventName; |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 41 |