1 | <?php |
||
2 | |||
3 | View Code Duplication | class AnalyticsResponseHomePageMock extends Google_Service_AnalyticsReporting_ReportRow |
|
1 ignored issue
–
show
|
|||
4 | { |
||
5 | public $response; |
||
6 | |||
7 | public function getDimensions() |
||
8 | { |
||
9 | return [0 => '/']; |
||
10 | } |
||
11 | |||
12 | public function getMetrics() |
||
13 | { |
||
14 | $return = new Google_Service_AnalyticsReporting_DateRangeValues(); |
||
15 | $return->setValues([0 => 45477]); |
||
16 | return [$return]; |
||
17 | } |
||
18 | } |
||
19 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.