Passed
Push — master ( 8cd1cf...370b72 )
by Jasper
03:04
created

ErrorSource   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 36
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getPointer() 0 3 1
A getParameter() 0 3 1
1
<?php
2
3
namespace Swis\JsonApi\Client;
4
5
class ErrorSource
6
{
7
    /**
8
     * @var string|null
9
     */
10
    protected $pointer;
11
12
    /**
13
     * @var string|null
14
     */
15
    protected $parameter;
16
17
    /**
18
     * @param string|null $pointer
19
     * @param string|null $parameter
20
     */
21 5
    public function __construct(string $pointer = null, string $parameter = null)
22
    {
23 5
        $this->pointer = $pointer;
24 5
        $this->parameter = $parameter;
25 5
    }
26
27
    /**
28
     * @return string|null
29
     */
30 5
    public function getPointer()
31
    {
32 5
        return $this->pointer;
33
    }
34
35
    /**
36
     * @return string|null
37
     */
38 5
    public function getParameter()
39
    {
40 5
        return $this->parameter;
41
    }
42
}
43