public function allOf(string $name): array
    {
        $oid = AttributeType::attrNameToOID($name);
        $attribs = array_filter($this->_attribs,
            function (AttributeTypeAndValue $tv) use ($oid) {
                return $tv->oid() == $oid;
            });
        return array_values($attribs);
    }
public function allOf(string $name): array
    {
        $oid = AttributeType::attrNameToOID($name);
        $attribs = array_filter($this->_attribs,
            function (AttributeTypeAndValue $tv) use ($oid) {
                return $tv->oid() == $oid;
            });
        return array_values($attribs);
    }
public function allOf ( string $ name ) : array { $ oid = AttributeType :: attrNameToOID ( $ name ) ; $ attribs = array_filter ( $ this -> _attribs , function ( AttributeTypeAndValue $ tv ) use ( $ oid ) { return $ tv -> oid ( ) == $ oid ; } ) ; return array_values ( $ attribs ) ; }
Get all AttributeTypeAndValue objects of the given attribute type.

@param string $name Attribute OID or name
@return AttributeTypeAndValue[]
Get all AttributeTypeAndValue objects of the given attribute type .