required as $key) { if ( ! isset($options[$key])) { throw new Kohana_OAuth_Exception('Required option not passed: :option', array(':option' => $key)); } $this->$key = $options[$key]; } } /** * Return the value of any protected class variable. * * // Get the token secret * $secret = $token->secret; * * @param string variable name * @return mixed */ public function __get($key) { return $this->$key; } /** * Returns the token key. * * @return string */ public function __toString() { return (string) $this->token; } } // End OAuth_Token