public function hasAttribute($attr)
    {
        if (isset($this->_setters[$attr])) {
            return true;
        } elseif (isset($this->_props[$attr])) {
            return true;
        } elseif (isset($this->_rels[$attr])) {
            return true;
        }

        return false;
    }
public function hasAttribute($attr)
    {
        if (isset($this->_setters[$attr])) {
            return true;
        } elseif (isset($this->_props[$attr])) {
            return true;
        } elseif (isset($this->_rels[$attr])) {
            return true;
        }

        return false;
    }
public function hasAttribute ( $ attr ) { if ( isset ( $ this -> _setters [ $ attr ] ) ) { return true ; } elseif ( isset ( $ this -> _props [ $ attr ] ) ) { return true ; } elseif ( isset ( $ this -> _rels [ $ attr ] ) ) { return true ; } return false ; }
Check if attribute is available on a domain object
Check if attribute is available on a domain object