public static function fromAttributeValues(AttributeValue ...$values): self
    {
        // we need at least one value to determine OID
        if (!count($values)) {
            throw new \LogicException("No values.");
        }
        $oid = reset($values)->oid();
        return new self(new AttributeType($oid), ...$values);
    }
public static function fromAttributeValues(AttributeValue ...$values): self
    {
        // we need at least one value to determine OID
        if (!count($values)) {
            throw new \LogicException("No values.");
        }
        $oid = reset($values)->oid();
        return new self(new AttributeType($oid), ...$values);
    }
public static function fromAttributeValues ( AttributeValue ... $ values ) : self { // we need at least one value to determine OID if ( ! count ( $ values ) ) { throw new \ LogicException ( "No values." ) ; } $ oid = reset ( $ values ) -> oid ( ) ; return new self ( new AttributeType ( $ oid ) , ... $ values ) ; }
Convenience method to initialize from attribute values.

@param AttributeValue ...$values One or more values
@throws \LogicException
@return self
Convenience method to initialize from attribute values .