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