public static function fromAttributeValues(AttributeValue ...$values): self
    {
        $attribs = array_map(
            function (AttributeValue $value) {
                return $value->toAttribute();
            }, $values);
        return new self(...$attribs);
    }
public static function fromAttributeValues(AttributeValue ...$values): self
    {
        $attribs = array_map(
            function (AttributeValue $value) {
                return $value->toAttribute();
            }, $values);
        return new self(...$attribs);
    }
public static function fromAttributeValues ( AttributeValue ... $ values ) : self { $ attribs = array_map ( function ( AttributeValue $ value ) { return $ value -> toAttribute ( ) ; } , $ values ) ; return new self ( ... $ attribs ) ; }
Initialize from attribute values.

@param AttributeValue ...$values
@return self
Initialize from attribute values .