@@ 49-57 (lines=9) @@ | ||
46 | // } |
|
47 | } |
|
48 | ||
49 | public function add($method, $uri, $payload, array $options = array()) |
|
50 | { |
|
51 | $options = array( |
|
52 | 'method' => $method, |
|
53 | 'url' => $uri, |
|
54 | 'data' => $payload, |
|
55 | ) + $options; |
|
56 | $this->addOptions(array($options)); |
|
57 | return $this; |
|
58 | } |
|
59 | ||
60 |
@@ 257-263 (lines=7) @@ | ||
254 | } |
|
255 | /* no body */ |
|
256 | ||
257 | protected function ini($method, $url, $data , array $options = array()) |
|
258 | { |
|
259 | $options = array('url' => $url, 'method' => $method, 'data' => $data) + $options; |
|
260 | $this->addOptions($options); |
|
261 | ||
262 | return $this; |
|
263 | } |
|
264 | ||
265 | public function addOptions(array $options = array()) |
|
266 | { |