id = $id; return $this; } /** * @param mixed $type */ public function setType( $type ) { $this->type = $type; return $this; } /** * @param mixed $events */ public function setEvents( $events ) { $this->events = $events; return $this; } /** * @return string[] */ public function getEvents() { return $this->events; } /** * @return mixed */ public function getId() { return $this->id; } /** * @return mixed */ public function getType() { return $this->type; } public function __toArray() { return array( 'id' => $this->id, 'type' => $this->type, 'events' => $this->events, ); } } }