public function toModel()
    {
        $nodeClass = $this->getElement()->NodeClass;
        if ($nodeClass === 'Node') {
            throw new LogicException('You must set a custom node in <node_class/> for element: ' . $this->getElement()->getSlug());
        } else {
            throw new LogicException('You must create a toModel method in: ' . $nodeClass);
        }
    }
public function toModel()
    {
        $nodeClass = $this->getElement()->NodeClass;
        if ($nodeClass === 'Node') {
            throw new LogicException('You must set a custom node in <node_class/> for element: ' . $this->getElement()->getSlug());
        } else {
            throw new LogicException('You must create a toModel method in: ' . $nodeClass);
        }
    }
public function toModel ( ) { $ nodeClass = $ this -> getElement ( ) -> NodeClass ; if ( $ nodeClass === 'Node' ) { throw new LogicException ( 'You must set a custom node in <node_class/> for element: ' . $ this -> getElement ( ) -> getSlug ( ) ) ; } else { throw new LogicException ( 'You must create a toModel method in: ' . $ nodeClass ) ; } }
You must implement a toModel method in a subclass of Node, defined in
a plugin.xml or system.xml in order to have toModel functionality.

@return mixed

@throws LogicException
You must implement a toModel method in a subclass of Node defined in a plugin . xml or system . xml in order to have toModel functionality .