1 | <?php |
||
16 | abstract class AbstractByTokenGetRequest extends AbstractApiRequest |
||
17 | { |
||
18 | const TOKEN = 'token'; |
||
19 | const TOKEN_NAME = 'token'; |
||
20 | |||
21 | protected $token; |
||
22 | |||
23 | /** |
||
24 | * @param string $token |
||
25 | * @param Context $context |
||
26 | */ |
||
27 | 7 | public function __construct(JsonEndpoint $endpoint, $token, Context $context = null) |
|
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | 6 | public function getToken() |
|
40 | |||
41 | /** |
||
42 | * @param string $token |
||
43 | * @return $this |
||
44 | */ |
||
45 | 7 | public function setToken($token) |
|
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | * @internal |
||
55 | */ |
||
56 | 6 | protected function getPath() |
|
61 | |||
62 | /** |
||
63 | * @return HttpRequest |
||
64 | * @internal |
||
65 | */ |
||
66 | 6 | public function httpRequest() |
|
70 | |||
71 | /** |
||
72 | * @param ResponseInterface $response |
||
73 | * @return ResourceResponse |
||
74 | * @internal |
||
75 | */ |
||
76 | 4 | public function buildResponse(ResponseInterface $response) |
|
80 | } |
||
81 |