public function getAttribute($key, $default = null)
	{
		$this->_fetchAttributes();
		$getter = 'get' . $key;
		if (method_exists($this, $getter)) {
			return $this->$getter();
		} else {
			return isset($this->attributes[$key]) ? $this->attributes[$key] : $default;
		}
	}
public function getAttribute($key, $default = null)
	{
		$this->_fetchAttributes();
		$getter = 'get' . $key;
		if (method_exists($this, $getter)) {
			return $this->$getter();
		} else {
			return isset($this->attributes[$key]) ? $this->attributes[$key] : $default;
		}
	}
public function getAttribute ( $ key , $ default = null ) { $ this -> _fetchAttributes ( ) ; $ getter = 'get' . $ key ; if ( method_exists ( $ this , $ getter ) ) { return $ this -> $ getter ( ) ; } else { return isset ( $ this -> attributes [ $ key ] ) ? $ this -> attributes [ $ key ] : $ default ; } }
Returns the authorization attribute value.

@param string $key the attribute name.
@param mixed $default the default value.
@return mixed the attribute value.
Returns the authorization attribute value .