NullAnalyticsResponse::getRequestUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TheIconic\Tracking\GoogleAnalytics;
4
5
/**
6
 * Represents the null-response object
7
 *
8
 * @package TheIconic\Tracking\GoogleAnalytics
9
 */
10
class NullAnalyticsResponse implements AnalyticsResponseInterface
11
{
12
    /**
13
     * It returns NULL as it is null-object.
14
     *
15
     * @api
16
     * @return null
17
     */
18
    public function getHttpStatusCode()
19
    {
20
        return null;
21
    }
22
23
    /**
24
     * It returns NULL as it is null-object.
25
     *
26
     * @api
27
     * @return string
28
     */
29
    public function getRequestUrl()
30
    {
31
        return '';
32
    }
33
34
    /**
35
     * Returns empty array as it is null-object.
36
     *
37
     * @api
38
     * @return array
39
     */
40
    public function getDebugResponse()
41
    {
42
        return [];
43
    }
44
}
45