@@ 65-73 (lines=9) @@ | ||
62 | * @param array $options |
|
63 | * @return $this |
|
64 | */ |
|
65 | public function add($method, $uri, $payload, array $options = array()) |
|
66 | { |
|
67 | $options = array( |
|
68 | 'method' => $method, |
|
69 | 'url' => $uri, |
|
70 | 'data' => $payload, |
|
71 | ) + $options; |
|
72 | $this->addOptions(array($options)); |
|
73 | return $this; |
|
74 | } |
|
75 | ||
76 | /** |
@@ 263-269 (lines=7) @@ | ||
260 | * @param array $options |
|
261 | * @return $this |
|
262 | */ |
|
263 | protected function ini($method, $url, $data, array $options = array()) |
|
264 | { |
|
265 | $options = array('url' => $url, 'method' => $method, 'data' => $data) + $options; |
|
266 | $this->addOptions($options); |
|
267 | ||
268 | return $this; |
|
269 | } |
|
270 | ||
271 | /** |
|
272 | * @param array $options |