Completed
Pull Request — 5.6 (#2830)
by Jeroen
14:14
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
    public function __construct(ClientHelper $clientHelper)
20
    {
21
        $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...
22
        $this->service = new Google_AnalyticsService($clientHelper->getClient());
23
    }
24
25
    /**
26
     * @return Google_AnalyticsService $service
27
     */
28
    public function getService()
29
    {
30
        return $this->service;
31
    }
32
33
    /**
34
     * @return ClientHelper $clientHelper
35
     */
36
    public function getClientHelper()
37
    {
38
        return $this->clientHelper;
39
    }
40
}
41