/** * {@inheritdoc} */ public function add(EventInterface $newEvent) { $this->events = $this->strategy->add($newEvent, $this->events); $this->checkCursor(); }
/** * {@inheritdoc} */ public function add(EventInterface $newEvent, array $events) { $result = $this->innerStrategy->add($newEvent, $events); $this->persister->persist($this->calendar); return $result; }