Skip to content

Commit

Permalink
Added OAuth2_Provider::__get(), same as OAuth_Provider::__get()
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed Nov 17, 2011
1 parent 158dd85 commit 7073ded
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions classes/kohana/oauth2/provider.php
Expand Up @@ -9,6 +9,20 @@ public static function factory($name, array $options = NULL)
return new $class($options);
}

/**
* Return the value of any protected class variable.
*
* // Get the provider signature
* $signature = $provider->signature;
*
* @param string variable name
* @return mixed
*/
public function __get($key)
{
return $this->$key;
}

abstract public function url_authorize();

abstract public function url_access_token();
Expand Down

0 comments on commit 7073ded

Please sign in to comment.