public function addEvent($webhookEvent) { if (!$this->getEvents()) { return $this->setEvents(array($webhookEvent)); } else { return $this->setEvents(array_merge($this->getEvents(), array($webhookEvent))); } }