Passed
Push — master ( 2d6ff2...25c8f8 )
by Aleksander
12:10
created

DefaultClientResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 24
ccs 5
cts 5
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setPayload() 0 3 1
A getPayload() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Nighten\ApiClient\Response;
4
5
class DefaultClientResponse
6
{
7
    private array $payload;
8
9 7
    public function __construct(array $payload)
10
    {
11 7
        $this->payload = $payload;
12 7
    }
13
14
    /**
15
     * @return array
16
     */
17 1
    public function getPayload(): array
18
    {
19 1
        return $this->payload;
20
    }
21
22
    /**
23
     * @param array $payload
24
     * @codeCoverageIgnore
25
     */
26
    public function setPayload(array $payload): void
27
    {
28
        $this->payload = $payload;
29
    }
30
}
31