NullAnalyticsResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
eloc 4
c 2
b 0
f 0
dl 0
loc 33
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getHttpStatusCode() 0 3 1
A getRequestUrl() 0 3 1
A getDebugResponse() 0 3 1
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