protected function _findFirst(string $name)
    {
        $oid = AttributeType::attrNameToOID($name);
        foreach ($this->_attributes as $attr) {
            if ($attr->oid() == $oid) {
                return $attr;
            }
        }
        return null;
    }
protected function _findFirst(string $name)
    {
        $oid = AttributeType::attrNameToOID($name);
        foreach ($this->_attributes as $attr) {
            if ($attr->oid() == $oid) {
                return $attr;
            }
        }
        return null;
    }
protected function _findFirst ( string $ name ) { $ oid = AttributeType :: attrNameToOID ( $ name ) ; foreach ( $ this -> _attributes as $ attr ) { if ( $ attr -> oid ( ) == $ oid ) { return $ attr ; } } return null ; }
Find first attribute of given name or OID.

@param string $name
@return Attribute|null
Find first attribute of given name or OID .