/** * Add events. * * @param $key * @param \Mautic\CampaignBundle\Entity\Event $event * * @return Campaign */ public function addEvent($key, Event $event) { if ($changes = $event->getChanges()) { $this->changes['events']['added'][$key] = [$key, $changes]; } $this->events[$key] = $event; return $this; }
/** * {@inheritDoc} */ public function getChanges() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getChanges', array()); return parent::getChanges(); }