Completed
Push — master ( 1de9b7...830752 )
by Kristof
38:46 queued 24:09
created

Helper/Google/Analytics/ServiceHelper.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\DashboardBundle\Helper\Google\Analytics;
4
5
use Google_AnalyticsService;
6
use Kunstmaan\DashboardBundle\Helper\Google\ClientHelper;
7
8
class ServiceHelper
9
{
10
    /** @var Google_AnalyticsService $service */
11
    private $service;
12
13
    /** @var GoogleClientHelper $clientHelper */
14
    private $clientHelper;
15
16
    /**
17
     * constructor
18
     *
19
     * @param ClientHelper $clientHelper
20
     */
21
    public function __construct(ClientHelper $clientHelper)
22
    {
23
        $this->clientHelper = $clientHelper;
24
        $this->service = new Google_AnalyticsService($clientHelper->getClient());
25
    }
26
27
    /**
28
     * @return Google_AnalyticsService $service
29
     */
30
    public function getService()
31
    {
32
        return $this->service;
33
    }
34
35
    /**
36
     * @return ClientHelper $clientHelper
0 ignored issues
show
Should the return type not be GoogleClientHelper?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
37
     */
38
    public function getClientHelper()
39
    {
40
        return $this->clientHelper;
41
    }
42
}
43