Completed
Push — master ( ae5e03...0447ee )
by Jeroen
10:35 queued 04:37
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 */
11
    private $service;
12
13
    /** @var GoogleClientHelper */
14
    private $clientHelper;
15
16
    /**
17
     * constructor
18
     *
19
     * @param ClientHelper $clientHelper
20
     */
21
    public function __construct(ClientHelper $clientHelper)
22
    {
23
        $this->clientHelper = $clientHelper;
0 ignored issues
show
Documentation Bug introduced by
It seems like $clientHelper of type object<Kunstmaan\Dashboa...er\Google\ClientHelper> is incompatible with the declared type object<Kunstmaan\Dashboa...ics\GoogleClientHelper> of property $clientHelper.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

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