| @@ 26-41 (lines=16) @@ | ||
| 23 | * @param string $originalEventId |
|
| 24 | * @param CalendarInterface $calendar |
|
| 25 | */ |
|
| 26 | public function __construct( |
|
| 27 | $eventId, |
|
| 28 | $originalEventId, |
|
| 29 | CalendarInterface $calendar |
|
| 30 | ) { |
|
| 31 | parent::__construct($eventId); |
|
| 32 | ||
| 33 | if (!is_string($originalEventId)) { |
|
| 34 | throw new \InvalidArgumentException( |
|
| 35 | 'Expected originalEventId to be a string, received ' . gettype($originalEventId) |
|
| 36 | ); |
|
| 37 | } |
|
| 38 | ||
| 39 | $this->originalEventId = $originalEventId; |
|
| 40 | $this->calendar = $calendar; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @return string |
|
| @@ 27-42 (lines=16) @@ | ||
| 24 | * @param string $originalEventId |
|
| 25 | * @param CalendarInterface $calendar |
|
| 26 | */ |
|
| 27 | public function __construct( |
|
| 28 | $eventId, |
|
| 29 | $originalEventId, |
|
| 30 | CalendarInterface $calendar |
|
| 31 | ) { |
|
| 32 | parent::__construct($eventId); |
|
| 33 | ||
| 34 | if (!is_string($originalEventId)) { |
|
| 35 | throw new \InvalidArgumentException( |
|
| 36 | 'Expected originalEventId to be a string, received ' . gettype($originalEventId) |
|
| 37 | ); |
|
| 38 | } |
|
| 39 | ||
| 40 | $this->originalEventId = $originalEventId; |
|
| 41 | $this->calendar = $calendar; |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @return string |
|