src/Micrometa/Infrastructure/Parser/JsonLD.php
protected function parseNodeProperties(NodeInterface $node)
    {
        $properties = [];

        // Run through all node properties
        foreach ($node->getProperties() as $name => $property) {
            // Skip the node type
            if ($name === Node::TYPE) {
                continue;
            }

            // Initialize the property (if necessary)
            $this->initializeNodeProperty($name, $properties);

            // Parse and process the property value
            $this->processNodeProperty($name, $this->parse($property), $properties);
        }

        return $properties;
    }
protected function parseNodeProperties(NodeInterface $node)
    {
        $properties = [];

        // Run through all node properties
        foreach ($node->getProperties() as $name => $property) {
            // Skip the node type
            if ($name === Node::TYPE) {
                continue;
            }

            // Initialize the property (if necessary)
            $this->initializeNodeProperty($name, $properties);

            // Parse and process the property value
            $this->processNodeProperty($name, $this->parse($property), $properties);
        }

        return $properties;
    }
protected function parseNodeProperties ( NodeInterface $ node ) { $ properties = [ ] ; // Run through all node properties foreach ( $ node -> getProperties ( ) as $ name => $ property ) { // Skip the node type if ( $ name === Node :: TYPE ) { continue ; } // Initialize the property (if necessary) $ this -> initializeNodeProperty ( $ name , $ properties ) ; // Parse and process the property value $ this -> processNodeProperty ( $ name , $ this -> parse ( $ property ) , $ properties ) ; } return $ properties ; }
Parse the properties of a JSON-LD node

@param NodeInterface $node Node

@return array Item properties
Parse the properties of a JSON - LD node