ParcelStatus   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 18 1
1
<?php
2
3
namespace DansMaCulotte\Colissimo\Resources;
4
5
class ParcelStatus
6
{
7
    public $data;
8
9
    public function __construct(
10
        string $skybillNumber,
11
        string $eventCode,
12
        string $eventDate,
13
        string $eventLibelle,
14
        string $eventSite,
15
        string $recipientCity,
16
        string $recipientZipCode,
17
        string $recipientCountryCode
18
    ) {
19
        $this->data['id'] = $skybillNumber;
20
        $this->data['code'] = $eventCode;
21
        $this->data['date'] = $eventDate;
22
        $this->data['status'] = $eventLibelle;
23
        $this->data['site'] = $eventSite;
24
        $this->data['city'] = $recipientCity;
25
        $this->data['zipCode'] = $recipientZipCode;
26
        $this->data['countryCode'] = $recipientCountryCode;
27
    }
28
}
29