Completed
Push — master ( 91fdab...75a7b9 )
by
unknown
13: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
use Google_AnalyticsService;
5
use Kunstmaan\DashboardBundle\Helper\Google\ClientHelper;
6
7
class ServiceHelper
8
{
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
        $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...
23
        $this->service = new Google_AnalyticsService($clientHelper->getClient());
24
    }
25
26
    /**
27
     * @return Google_AnalyticsService $service
28
     */
29
    public function getService()
30
    {
31
        return $this->service;
32
    }
33
34
    /**
35
     * @return ClientHelper $clientHelper
36
     */
37
    public function getClientHelper() {
38
        return $this->clientHelper;
39
    }
40
41
42
}
43