1 | <?php |
||
24 | class Action implements ActionInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $method = null; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $arguments = null; |
||
35 | |||
36 | /** |
||
37 | * @var RemoteAdapterInterface |
||
38 | */ |
||
39 | protected $remoteAdapter = null; |
||
40 | |||
41 | /** |
||
42 | * @param string $method |
||
43 | * @param array $arguments |
||
44 | * @param RemoteAdapterInterface $remoteAdapter |
||
45 | */ |
||
46 | public function __construct($method, array $arguments = array(), RemoteAdapterInterface $remoteAdapter = null) |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getMethod() |
||
60 | |||
61 | /** |
||
62 | * @return array |
||
63 | */ |
||
64 | public function getArguments() |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function execute() |
||
76 | |||
77 | /** |
||
78 | * @param MultiCallQueueInterface $queue |
||
79 | * @param callable $callback |
||
80 | * |
||
81 | * @return mixed|void |
||
82 | */ |
||
83 | public function addToQueue(MultiCallQueueInterface $queue, $callback = null) |
||
87 | } |
||
88 |