Jackalope\Observation\Event::checkNodeTypeEvent PHP Method

checkNodeTypeEvent() private method

Check if this event is a node type event. Throw exception otherwise.
private checkNodeTypeEvent ( )
    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');
        }
    }