示例#1
0
 /**
  * {@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;
 }