CloudObjects/SDK/NodeReader.php
public function getFirstValueNode(Node $node = null, $property, Node $default = null) {
        $valueFromNode = $this->getFirstValue($node, $property, $default);
        if ($valueFromNode == $default)
            return $default;
        
        if (is_a($valueFromNode, 'ML\JsonLD\Node'))
            return $valueFromNode;
        else
            return $default;
    }
public function getFirstValueNode(Node $node = null, $property, Node $default = null) {
        $valueFromNode = $this->getFirstValue($node, $property, $default);
        if ($valueFromNode == $default)
            return $default;
        
        if (is_a($valueFromNode, 'ML\JsonLD\Node'))
            return $valueFromNode;
        else
            return $default;
    }
public function getFirstValueNode ( Node $ node = null , $ property , Node $ default = null ) { $ valueFromNode = $ this -> getFirstValue ( $ node , $ property , $ default ) ; if ( $ valueFromNode == $ default ) return $ default ; if ( is_a ( $ valueFromNode , 'ML\JsonLD\Node' ) ) return $ valueFromNode ; else return $ default ; }
Reads a property from a node and returns it as a Node.
If the property has multiple values only the first is returned.
If no value is found, value is a literal or the node is null, the default is returned.

@param Node $node The node to work on.
@param string|object $property The property to read.
@param $default The default that is returned if no value for the property exists on the node.
@return string|null
Reads a property from a node and returns it as a Node . If the property has multiple values only the first is returned . If no value is found value is a literal or the node is null the default is returned .