| 1 | <?php |
||
| 9 | class IdentificationRequest |
||
| 10 | { |
||
| 11 | public $url; |
||
| 12 | public $referrer; |
||
| 13 | public $ip; |
||
| 14 | public $user_agent; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * This can be used to rapidly construct a request from superglobals simply by calling |
||
| 18 | * |
||
| 19 | * $req = class IdentificationRequest::fromArray($_SERVER); |
||
| 20 | * @param $vars |
||
| 21 | * @return IdentificationRequest |
||
| 22 | */ |
||
| 23 | public static function fromArray($vars) |
||
| 32 | |||
| 33 | public function getRequestJSON() |
||
| 44 | } |
||
| 45 |