* @param string $key the key that will be taken from the $_COOKIE array
* @return array the value in the $_COOKIE element
*/
- function getCookie($key) {
+ public function getCookie($key) {
return isset($this->cookies[$key]) ? $this->cookies[$key] : null;
}
* @param string $name
* @param mixed $value
*/
- function registerParameter($name, $value) {
+ public function registerParameter($name, $value) {
$this[$name] = $value;
}
* @param \Closure $closure the closure to be called on service creation
* @param bool $shared
*/
- function registerService($name, \Closure $closure, $shared = true) {
+ public function registerService($name, \Closure $closure, $shared = true) {
if (isset($this[$name])) {
unset($this[$name]);
}
* @param string $user the ownCloud user id
* @return \OCP\IAvatar
*/
- function getAvatar($user) {
+ public function getAvatar($user) {
return new Avatar($user);
}
}