1 | <?php declare(strict_types=1); |
||
10 | class ExploreResultCollection |
||
11 | { |
||
12 | /** |
||
13 | * @var ExploreResult[] |
||
14 | */ |
||
15 | public $results; |
||
16 | |||
17 | 18 | public function __construct(ExploreResult ...$terms) |
|
21 | |||
22 | /** |
||
23 | * @return RelatedResult[] |
||
24 | */ |
||
25 | 1 | public function getResults(): array |
|
29 | |||
30 | /** |
||
31 | * @return ExploreResult |
||
32 | * |
||
33 | * @throws GoogleTrendsException |
||
34 | */ |
||
35 | 6 | public function getRelatedQueriesResult(): ExploreResult |
|
42 | |||
43 | /** |
||
44 | * @return ExploreResult |
||
45 | * |
||
46 | * @throws GoogleTrendsException |
||
47 | */ |
||
48 | 6 | public function getRelatedTopicsResult(): ExploreResult |
|
55 | |||
56 | /** |
||
57 | * @return ExploreResult |
||
58 | * |
||
59 | * @throws GoogleTrendsException |
||
60 | */ |
||
61 | 4 | public function getInterestOverTimeResult(): ExploreResult |
|
68 | |||
69 | /** |
||
70 | * @return ExploreResult |
||
71 | * |
||
72 | * @throws GoogleTrendsException |
||
73 | */ |
||
74 | 4 | public function getInterestByRegionResult(): ExploreResult |
|
81 | |||
82 | /** |
||
83 | * @param string $method |
||
84 | * @param string $exceptionMessage |
||
85 | * |
||
86 | * @return ExploreResult |
||
87 | * |
||
88 | * @throws GoogleTrendsException |
||
89 | */ |
||
90 | 18 | private function getResultByMethod(string $method, string $exceptionMessage): ExploreResult |
|
100 | } |
||
101 |