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

Status::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 6
nc 1
nop 6
dl 0
loc 15
rs 10
c 1
b 0
f 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