@@ -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 |
@@ -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 string $name |
|
72 | + */ |
|
67 | 73 | public function getCookie($name) |
68 | 74 | { |
69 | 75 | return $this->cookies->get($name); |
@@ -135,6 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | /** |
137 | 137 | * @throw Exception |
138 | + * @param string $message |
|
138 | 139 | */ |
139 | 140 | public function error($message) |
140 | 141 | { |
@@ -404,6 +405,11 @@ discard block |
||
404 | 405 | * |
405 | 406 | * @return array|object |
406 | 407 | */ |
408 | + |
|
409 | + /** |
|
410 | + * @param string $type |
|
411 | + * @param Identity $value |
|
412 | + */ |
|
407 | 413 | protected function processAnalyzers($type, $value) |
408 | 414 | { |
409 | 415 | if (isset($this->analyzers[$type])) { |
@@ -545,6 +551,10 @@ discard block |
||
545 | 551 | exit; |
546 | 552 | } |
547 | 553 | |
554 | + /** |
|
555 | + * @param string $code |
|
556 | + * @param string $message |
|
557 | + */ |
|
548 | 558 | public static function responseStatus($code, $message) |
549 | 559 | { |
550 | 560 | if (function_exists('http_response_code')) { |
@@ -39,11 +39,19 @@ |
||
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $key |
|
44 | + */ |
|
42 | 45 | public function hasAttribute($key) |
43 | 46 | { |
44 | 47 | return isset($this->$key); |
45 | 48 | } |
46 | 49 | |
50 | + /** |
|
51 | + * @param string $name |
|
52 | + * |
|
53 | + * @return string|null |
|
54 | + */ |
|
47 | 55 | public function getAttribute($name) |
48 | 56 | { |
49 | 57 | if (isset($this->attributes[$name])) { |