src/Micrometa/Infrastructure/Parser/LinkType.php
protected function parseProperties(\DOMElement $linkType)
    {
        $properties = [];
        /**
         * @var string $attributeName Attribute name
         * @var \DOMAttr $attribute   Attribute
         */
        foreach ($linkType->attributes as $attributeName => $attribute) {
            if (!in_array($attributeName, ['rel', 'id'])) {
                $profile      = $attribute->lookupNamespaceUri($attribute->prefix ?: null);
                $property     = (object)[
                    'name'    => $attributeName,
                    'profile' => $profile,
                    'values'  => $this->parseAttributeValue($profile, $attributeName, $attribute->value),
                ];
                $properties[] = $property;
            }
        }

        return $properties;
    }
protected function parseProperties(\DOMElement $linkType)
    {
        $properties = [];
        /**
         * @var string $attributeName Attribute name
         * @var \DOMAttr $attribute   Attribute
         */
        foreach ($linkType->attributes as $attributeName => $attribute) {
            if (!in_array($attributeName, ['rel', 'id'])) {
                $profile      = $attribute->lookupNamespaceUri($attribute->prefix ?: null);
                $property     = (object)[
                    'name'    => $attributeName,
                    'profile' => $profile,
                    'values'  => $this->parseAttributeValue($profile, $attributeName, $attribute->value),
                ];
                $properties[] = $property;
            }
        }

        return $properties;
    }
protected function parseProperties ( \ DOMElement $ linkType ) { $ properties = [ ] ; /**
         * @var string $attributeName Attribute name
         * @var \DOMAttr $attribute   Attribute
         */ foreach ( $ linkType -> attributes as $ attributeName => $ attribute ) { if ( ! in_array ( $ attributeName , [ 'rel' , 'id' ] ) ) { $ profile = $ attribute -> lookupNamespaceUri ( $ attribute -> prefix ? : null ) ; $ property = ( object ) [ 'name' => $ attributeName , 'profile' => $ profile , 'values' => $ this -> parseAttributeValue ( $ profile , $ attributeName , $ attribute -> value ) , ] ; $ properties [ ] = $ property ; } } return $ properties ; }
Parse the LinkType attributes

@param \DOMElement $linkType LinkType element

@return array Properties
Parse the LinkType attributes