@@ 5-40 (lines=36) @@ | ||
2 | ||
3 | use Algorit\Synchronizer\Request\Methods\MethodInterface; |
|
4 | ||
5 | class Receive extends Dispatcher { |
|
6 | ||
7 | /** |
|
8 | * The request methods. |
|
9 | * |
|
10 | * @var array |
|
11 | */ |
|
12 | protected $methods = array('put', 'get', 'post', 'delete', 'patch'); |
|
13 | ||
14 | /** |
|
15 | * Create a new instance. |
|
16 | * |
|
17 | * @param \Algorit\Synchronizer\Request\Methods\MethodInterface $request |
|
18 | * @return instance |
|
19 | */ |
|
20 | public function __construct(MethodInterface $request) |
|
21 | { |
|
22 | $this->request = $request; |
|
23 | } |
|
24 | ||
25 | public function getName() |
|
26 | { |
|
27 | ||
28 | } |
|
29 | ||
30 | public function getRequestUrl() |
|
31 | { |
|
32 | ||
33 | } |
|
34 | ||
35 | public function dispatch($method, $data = array(), $options = array()) |
|
36 | { |
|
37 | ||
38 | } |
|
39 | ||
40 | } |
@@ 5-40 (lines=36) @@ | ||
2 | ||
3 | use Algorit\Synchronizer\Request\Methods\MethodInterface; |
|
4 | ||
5 | class Send extends Dispatcher { |
|
6 | ||
7 | /** |
|
8 | * The request methods. |
|
9 | * |
|
10 | * @var array |
|
11 | */ |
|
12 | protected $methods = array('put', 'get', 'post', 'delete', 'patch'); |
|
13 | ||
14 | /** |
|
15 | * Create a new instance. |
|
16 | * |
|
17 | * @param \Algorit\Synchronizer\Request\Methods\MethodInterface $request |
|
18 | * @return instance |
|
19 | */ |
|
20 | public function __construct(MethodInterface $request) |
|
21 | { |
|
22 | $this->request = $request; |
|
23 | } |
|
24 | ||
25 | public function getName() |
|
26 | { |
|
27 | ||
28 | } |
|
29 | ||
30 | public function getRequestUrl() |
|
31 | { |
|
32 | ||
33 | } |
|
34 | ||
35 | public function dispatch($method, $data = array(), $options = array()) |
|
36 | { |
|
37 | ||
38 | } |
|
39 | ||
40 | } |