@@ -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; |
@@ -122,6 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * @throw Exception |
| 125 | + * @param string $message |
|
| 125 | 126 | */ |
| 126 | 127 | public function error($message) |
| 127 | 128 | { |
@@ -379,6 +380,10 @@ discard block |
||
| 379 | 380 | * |
| 380 | 381 | * @return array|object |
| 381 | 382 | */ |
| 383 | + |
|
| 384 | + /** |
|
| 385 | + * @param string $type |
|
| 386 | + */ |
|
| 382 | 387 | protected function processAnalyzers($type, $value) |
| 383 | 388 | { |
| 384 | 389 | if (isset($this->analyzers[$type])) { |
@@ -515,6 +520,10 @@ discard block |
||
| 515 | 520 | exit; |
| 516 | 521 | } |
| 517 | 522 | |
| 523 | + /** |
|
| 524 | + * @param string $code |
|
| 525 | + * @param string $message |
|
| 526 | + */ |
|
| 518 | 527 | public static function response_status($code, $message) |
| 519 | 528 | { |
| 520 | 529 | if (function_exists('http_response_code')) { |
@@ -525,6 +534,9 @@ discard block |
||
| 525 | 534 | } |
| 526 | 535 | } |
| 527 | 536 | |
| 537 | + /** |
|
| 538 | + * @param string $string |
|
| 539 | + */ |
|
| 528 | 540 | public static function hash($string) |
| 529 | 541 | { |
| 530 | 542 | return md5($string); |
@@ -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); |