public static function convertToYotiAttributesMap(AttributeList $attributeList)
    {
        $yotiAttributes = [];

        foreach ($attributeList->getAttributes() as $attr) { /** @var ProtobufAttribute $attr */
            $attrName = $attr->getName();
            if (null === $attrName) {
                continue;
            }
            $yotiAttributes[$attr->getName()] = AttributeConverter::convertToYotiAttribute($attr);
        }
        return $yotiAttributes;
    }
public static function convertToYotiAttributesMap(AttributeList $attributeList)
    {
        $yotiAttributes = [];

        foreach ($attributeList->getAttributes() as $attr) { /** @var ProtobufAttribute $attr */
            $attrName = $attr->getName();
            if (null === $attrName) {
                continue;
            }
            $yotiAttributes[$attr->getName()] = AttributeConverter::convertToYotiAttribute($attr);
        }
        return $yotiAttributes;
    }
public static function convertToYotiAttributesMap ( AttributeList $ attributeList ) { $ yotiAttributes = [ ] ; foreach ( $ attributeList -> getAttributes ( ) as $ attr ) { /** @var ProtobufAttribute $attr */ $ attrName = $ attr -> getName ( ) ; if ( null === $ attrName ) { continue ; } $ yotiAttributes [ $ attr -> getName ( ) ] = AttributeConverter :: convertToYotiAttribute ( $ attr ) ; } return $ yotiAttributes ; }
Convert Protobuf AttributeList to Yoti Attributes map.

@param AttributeList $attributeList

@return array
Convert Protobuf AttributeList to Yoti Attributes map .