ResponsePayload   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 15
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Nip\Controllers\Response;
6
7
use ArrayAccess;
8
9
/**
10
 * Class ResponsePayload
11
 * @package Nip\Controllers\Response
12
 */
13
class ResponsePayload implements ArrayAccess
14
{
15
    public const REQUEST_PARAM_FORMAT = '_format';
16
17
    use ResponsePayload\Traits\HasDataTrait;
18 3
    use ResponsePayload\Traits\HasFormatTrait;
19
    use ResponsePayload\Traits\HasHeadersTrait;
20 3
21 3
    /**
22 3
     * ResponsePayload constructor.
23
     */
24
    public function __construct()
25
    {
26
        $this->initData();
27
        $this->initHeaders();
28
    }
29
}
30