1 | <?php |
||
15 | abstract class StatisticsRequest extends AbstractMessage |
||
16 | { |
||
17 | |||
18 | const TIME_INTERVAL_ALL_TIME = 'allTime'; |
||
19 | const TIME_INTERVAL_LAST_MONTH = 'lastMonth'; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $_instanceName; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $_timeInterval; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * StatisticsRequest constructor. |
||
34 | * |
||
35 | * @param string $type |
||
36 | * @param \stdClass $parameters |
||
37 | * |
||
38 | * @throws MalformedRequestException |
||
39 | */ |
||
40 | 1 | public function __construct($type, $parameters) |
|
55 | |||
56 | |||
57 | /** |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getInstanceName() |
||
64 | |||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getTimeInterval() |
||
73 | |||
74 | } |
||
75 |