public function allOf(string $name): array
    {
        $oid = AttributeType::attrNameToOID($name);
        $attrs = array_filter($this->_attributes,
            function (Attribute $attr) use ($oid) {
                return $attr->oid() == $oid;
            });
        return array_values($attrs);
    }
public function allOf(string $name): array
    {
        $oid = AttributeType::attrNameToOID($name);
        $attrs = array_filter($this->_attributes,
            function (Attribute $attr) use ($oid) {
                return $attr->oid() == $oid;
            });
        return array_values($attrs);
    }
public function allOf ( string $ name ) : array { $ oid = AttributeType :: attrNameToOID ( $ name ) ; $ attrs = array_filter ( $ this -> _attributes , function ( Attribute $ attr ) use ( $ oid ) { return $ attr -> oid ( ) == $ oid ; } ) ; return array_values ( $ attrs ) ; }
Get all attributes of given name.

@param string $name OID or attribute name
@return Attribute[]
Get all attributes of given name .