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

ErrorSource::getPointer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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