private function checkNodeTypeEvent() { if (!in_array($this->type, self::$NODE_TYPE_EVENT)) { throw new RepositoryException('Event of type ' . $this->type . ' does not have node type information'); } }