| @@ 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 | /** |
|
| @@ 329-335 (lines=7) @@ | ||
| 326 | * @param array $options |
|
| 327 | * @return $this |
|
| 328 | */ |
|
| 329 | protected function ini($method, $url, $data, array $options = array()) |
|
| 330 | { |
|
| 331 | $options = array('url' => $url, 'method' => $method, 'data' => $data) + $options; |
|
| 332 | $this->addOptions($options); |
|
| 333 | ||
| 334 | return $this; |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * @param array $options |
|