1 | <?php |
||
23 | class RESTClientRequest { |
||
24 | |||
25 | /** @var String The HTTTP method to use for the request. This should be either GET|PUT|POST|DELETE */ |
||
26 | public $method; |
||
27 | |||
28 | /** @var String The URL to make the request to */ |
||
29 | public $url; |
||
30 | |||
31 | /** @var Mixed The payload of the request */ |
||
32 | public $payload; |
||
33 | |||
34 | /** @var Array Request headers */ |
||
35 | public $headers; |
||
36 | |||
37 | /** |
||
38 | * Request object constructor. Request properties should be set here (rather than just setting the object properties directly). |
||
39 | * @param String $method The HTTP method you wish to use for the request |
||
40 | * @param String $url The URL path to make the request to (relative to the API base path) |
||
41 | * @param Mixed $payload The payload of the request |
||
42 | * @param Array $headers Request headers |
||
43 | */ |
||
44 | public function __construct($method, $url, $payload, array $headers = array()) { |
||
50 | |||
51 | } |