1 | <?php |
||
11 | abstract class AbstractStatus implements TokenizedQueryInterface |
||
12 | { |
||
13 | /** @var string unique resource identifier, received from mobile login request */ |
||
14 | protected $token; |
||
15 | |||
16 | /** |
||
17 | * @param string $token unique resource identifier, received from mobile login request |
||
18 | */ |
||
19 | 28 | public function __construct($token) |
|
23 | |||
24 | /** |
||
25 | * Get token |
||
26 | * @return string |
||
27 | */ |
||
28 | 4 | public function getToken() |
|
32 | |||
33 | /** |
||
34 | * Get fields |
||
35 | * @return array |
||
36 | */ |
||
37 | 4 | public function getFields() |
|
43 | |||
44 | /** |
||
45 | * Validation constraints for request data validation |
||
46 | * @return Assert\Collection |
||
47 | */ |
||
48 | 4 | public function getValidationConstraints() |
|
56 | |||
57 | /** |
||
58 | * HTTP method to use |
||
59 | * @return string |
||
60 | */ |
||
61 | 4 | public function getMethod() |
|
65 | } |
||
66 |