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