| Total Complexity | 8 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class EventCollection extends BaseObject implements EventCollectionInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var EventInterface[] array of events (key => event). |
||
| 23 | */ |
||
| 24 | private $_events = []; |
||
| 25 | /** |
||
| 26 | * @var string event class name. |
||
| 27 | */ |
||
| 28 | public $eventClass = Event::class; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | * @throws InvalidConfigException |
||
| 33 | */ |
||
| 34 | 24 | public function addEvent($event) |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritdoc |
||
| 55 | */ |
||
| 56 | 24 | public function getEvents() |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @inheritdoc |
||
| 63 | * @throws InvalidConfigException |
||
| 64 | */ |
||
| 65 | 26 | public function setEvents($events) |
|
| 76 |