protected function getResource()
    {
        if (empty($this->_resourceName) && empty($this->_resource)) {
            throw new LocalizedException(
                new Phrase('The resource isn\'t set.')
            );
        }

        return $this->_resource ?: ObjectManager::getInstance()->get($this->_resourceName);
    }
protected function getResource()
    {
        if (empty($this->_resourceName) && empty($this->_resource)) {
            throw new LocalizedException(
                new Phrase('The resource isn\'t set.')
            );
        }

        return $this->_resource ?: ObjectManager::getInstance()->get($this->_resourceName);
    }
protected function getResource ( ) { if ( empty ( $ this -> _resourceName ) && empty ( $ this -> _resource ) ) { throw new LocalizedException ( new Phrase ( 'The resource isn\'t set.' ) ) ; } return $ this -> _resource ? : ObjectManager :: getInstance ( ) -> get ( $ this -> _resourceName ) ; }
Get resource instance

@throws LocalizedException
@return \Snowdog\Menu\Model\ResourceModel\NodeType\AbstractNode
Get resource instance