1 | <?php |
||
21 | class ApiTestPayload extends AbstractPayload |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $args = []; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $error; |
||
32 | |||
33 | /** |
||
34 | * @param array $args |
||
35 | */ |
||
36 | public function replaceArguments(array $args) |
||
40 | |||
41 | /** |
||
42 | * @param string $key |
||
43 | * @param mixed $value |
||
44 | */ |
||
45 | 1 | public function addArgument($key, $value) |
|
49 | |||
50 | /** |
||
51 | * @param string $key |
||
52 | * |
||
53 | * @return mixed |
||
54 | */ |
||
55 | 1 | public function getArgument($key) |
|
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | public function getArguments() |
||
71 | |||
72 | /** |
||
73 | * @param string|null $error Error response to return |
||
74 | */ |
||
75 | 1 | public function setError($error) |
|
79 | |||
80 | /** |
||
81 | * @return string|null Error response to return |
||
82 | */ |
||
83 | 1 | public function getError() |
|
87 | |||
88 | /** |
||
89 | * @inheritdoc |
||
90 | */ |
||
91 | 1 | public function getMethod() |
|
95 | } |
||
96 |