From f9dc4cba79c598d3f994b3b607d616e68afd7e32 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 6 Jul 2012 18:15:53 +0100 Subject: [PATCH] Added some docblocks --- src/oauth2server/Server.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/oauth2server/Server.php b/src/oauth2server/Server.php index cb549296..2d9103f4 100644 --- a/src/oauth2server/Server.php +++ b/src/oauth2server/Server.php @@ -38,6 +38,11 @@ class Server maintenance of the server.' ); + /** + * Constructor + * @param array $options Optional list of options to overwrite the defaults + * @return void + */ public function __construct(array $options = null) { if ($options !== null) { @@ -45,11 +50,21 @@ class Server } } + /** + * Register a database abstrator class + * @param object $db A class that implements OAuth2ServerDatabase + * @return void + */ public function registerDbAbstractor(object $db) { $this->db = $db; } + /** + * Check authorise parameters + * @param array $authParams Optional array of parsed $_GET keys + * @return array Authorise request parameters + */ public function checkAuthoriseParams(array $authParams = null) { $params = array();