@@ -119,6 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * @throw Exception |
122 | + * @param string $message |
|
122 | 123 | */ |
123 | 124 | public function error($message) |
124 | 125 | { |
@@ -376,6 +377,10 @@ discard block |
||
376 | 377 | * |
377 | 378 | * @return array|object |
378 | 379 | */ |
380 | + |
|
381 | + /** |
|
382 | + * @param string $type |
|
383 | + */ |
|
379 | 384 | protected function processAnalyzers($type, $value) |
380 | 385 | { |
381 | 386 | if (isset($this->analyzers[$type])) { |
@@ -511,6 +516,9 @@ discard block |
||
511 | 516 | exit; |
512 | 517 | } |
513 | 518 | |
519 | + /** |
|
520 | + * @param string $string |
|
521 | + */ |
|
514 | 522 | public static function hash($string) |
515 | 523 | { |
516 | 524 | return md5($string); |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Memcache as PhpMemcache; |
15 | 15 | use Memcached as PhpMemcached; |
16 | - |
|
17 | 16 | use Bouncer\Exception; |
18 | 17 | |
19 | 18 | class Memcache extends AbstractCache |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Bouncer\Cache; |
13 | 13 | |
14 | 14 | use Redis as PhpRedis; |
15 | - |
|
16 | 15 | use Bouncer\Exception; |
17 | 16 | |
18 | 17 | class Redis extends AbstractCache |
@@ -119,11 +119,19 @@ |
||
119 | 119 | } |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param string $key |
|
124 | + */ |
|
122 | 125 | public function hasAttribute($key) |
123 | 126 | { |
124 | 127 | return isset($this->$key); |
125 | 128 | } |
126 | 129 | |
130 | + /** |
|
131 | + * @param string $key |
|
132 | + * |
|
133 | + * @return string|null |
|
134 | + */ |
|
127 | 135 | public function getAttribute($key) |
128 | 136 | { |
129 | 137 | return isset($this->$key) ? $this->$key : null; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Monolog\Formatter\LogstashFormatter; |
15 | 15 | use Monolog\Handler\StreamHandler; |
16 | 16 | use Monolog\Logger; |
17 | - |
|
18 | 17 | use Bouncer\Identity; |
19 | 18 | use Bouncer\Request; |
20 | 19 |
@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | return $userAgent ? $userAgent : ''; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $name |
|
37 | + */ |
|
35 | 38 | public function getHeader($name) |
36 | 39 | { |
37 | 40 | return $this->headers->get($name); |
@@ -64,6 +67,9 @@ discard block |
||
64 | 67 | return $headers; |
65 | 68 | } |
66 | 69 | |
70 | + /** |
|
71 | + * @param boolean $name |
|
72 | + */ |
|
67 | 73 | public function getCookie($name) |
68 | 74 | { |
69 | 75 | return $this->cookies->get($name); |