ErrorSource::getParameter()   A
last analyzed

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