clock-work
This commit is contained in:
20
vendor/itsgoingd/clockwork/Clockwork/Request/IncomingRequest.php
vendored
Normal file
20
vendor/itsgoingd/clockwork/Clockwork/Request/IncomingRequest.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php namespace Clockwork\Request;
|
||||
|
||||
// Incoming HTTP request
|
||||
class IncomingRequest
|
||||
{
|
||||
// Method
|
||||
public $method;
|
||||
// URI
|
||||
public $uri;
|
||||
|
||||
// GET and POST data
|
||||
public $input = [];
|
||||
// Cookies
|
||||
public $cookies = [];
|
||||
|
||||
public function __construct(array $data = [])
|
||||
{
|
||||
foreach ($data as $key => $val) $this->$key = $val;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user