protected function shouldExpandSegment($navigationPropertyName)
    {
        $expandedProjectionNode = $this->getCurrentExpandedProjectionNode();
        if (null === $expandedProjectionNode) {
            return false;
        }
        $expandedProjectionNode = $expandedProjectionNode->findNode($navigationPropertyName);

        // null is a valid input to an instanceof call as of PHP 5.6 - will always return false
        return $expandedProjectionNode instanceof ExpandedProjectionNode;
    }
protected function shouldExpandSegment($navigationPropertyName)
    {
        $expandedProjectionNode = $this->getCurrentExpandedProjectionNode();
        if (null === $expandedProjectionNode) {
            return false;
        }
        $expandedProjectionNode = $expandedProjectionNode->findNode($navigationPropertyName);

        // null is a valid input to an instanceof call as of PHP 5.6 - will always return false
        return $expandedProjectionNode instanceof ExpandedProjectionNode;
    }
protected function shouldExpandSegment ( $ navigationPropertyName ) { $ expandedProjectionNode = $ this -> getCurrentExpandedProjectionNode ( ) ; if ( null === $ expandedProjectionNode ) { return false ; } $ expandedProjectionNode = $ expandedProjectionNode -> findNode ( $ navigationPropertyName ) ; // null is a valid input to an instanceof call as of PHP 5.6 - will always return false return $ expandedProjectionNode instanceof ExpandedProjectionNode ; }
Check whether to expand a navigation property or not.

@param string $navigationPropertyName Name of naviagtion property in question

@return bool True if the given navigation should be expanded, otherwise false
Check whether to expand a navigation property or not .