| @@ 3-19 (lines=17) @@ | ||
| 1 | <?php |
|
| 2 | ||
| 3 | class AnalyticsResponseHomePageMock extends Google_Service_AnalyticsReporting_ReportRow |
|
| 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 | ||
| @@ 3-19 (lines=17) @@ | ||
| 1 | <?php |
|
| 2 | ||
| 3 | class AnalyticsResponseNoPageMock extends Google_Service_AnalyticsReporting_ReportRow |
|
| 4 | { |
|
| 5 | public $response; |
|
| 6 | ||
| 7 | public function getDimensions() |
|
| 8 | { |
|
| 9 | return [0 => '/i-do-not-exist']; |
|
| 10 | } |
|
| 11 | ||
| 12 | public function getMetrics() |
|
| 13 | { |
|
| 14 | $return = new Google_Service_AnalyticsReporting_DateRangeValues(); |
|
| 15 | $return->setValues([0 => 1]); |
|
| 16 | return [$return]; |
|
| 17 | } |
|
| 18 | } |
|
| 19 | ||