| @@ 53-60 (lines=8) @@ | ||
| 50 | * |
|
| 51 | * @return mixed |
|
| 52 | */ |
|
| 53 | private function validateEvents(array $events) |
|
| 54 | { |
|
| 55 | foreach ($events as $event) { |
|
| 56 | if (!$event instanceof EventRecord) { |
|
| 57 | throw new \InvalidArgumentException(sprintf('Expected EventRecord, got %s', get_class($event))); |
|
| 58 | } |
|
| 59 | } |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @param $link |
|
| @@ 46-53 (lines=8) @@ | ||
| 43 | * |
|
| 44 | * @return mixed |
|
| 45 | */ |
|
| 46 | private function validateEvents(array $events) |
|
| 47 | { |
|
| 48 | foreach ($events as $event) { |
|
| 49 | if (!$event instanceof EventRecord) { |
|
| 50 | throw new \InvalidArgumentException(sprintf('Expected EventRecord, got %s', get_class($event))); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * @param $link |
|