Completed
Push — master ( 2f8322...f18f78 )
by Gaël
11:24
created

Status   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 13
dl 0
loc 35
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
1
<?php
2
3
namespace DansMaCulotte\LaPoste\Resources;
4
5
class Status
6
{
7
    /** @var string */
8
    public $code;
9
10
    /** @var string */
11
    public $date;
12
13
    /** @var string */
14
    public $status;
15
16
    /** @var string */
17
    public $message;
18
19
    /** @var string */
20
    public $link;
21
22
    /** @var string */
23
    public $type;
24
25
    public function __construct(
26
        string $code,
27
        string $message,
28
        string $date = null,
29
        string $status = null,
30
        string $link = null,
31
        string $type = null
32
    )
33
    {
34
        $this->code = $code;
35
        $this->date = $date;
36
        $this->status = $status;
37
        $this->message = $message;
38
        $this->link = $link;
39
        $this->type = $type;
40
    }
41
42
}
43