Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class AnalyticsUpdateTask extends BuildTask |
||
15 | { |
||
16 | /** |
||
17 | * @return string Title |
||
18 | */ |
||
19 | public function getTitle() |
||
20 | { |
||
21 | return 'Update Google Analytics information for the configured pages'; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Start booting up |
||
26 | * @param HTTPRequest $request |
||
27 | * @throws Google_Exception |
||
28 | * @throws LogicException |
||
29 | */ |
||
30 | public function run($request) |
||
31 | { |
||
32 | $clientService = new GoogleClientService(); |
||
33 | |||
34 | $this->getReport($clientService); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Get the report and ask the service to update neatly |
||
39 | * |
||
40 | * @param GoogleClientService $client |
||
41 | * @throws ValidationException |
||
42 | */ |
||
43 | protected function getReport($client) |
||
58 | } |
||
59 | } |
||
60 |