Completed
Push — master ( 894b3e...f9d107 )
by Jorge
01:20
created

PacStamp::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
namespace FeiMx\Pac;
4
5
class PacStamp
6
{
7
    public $xml;
8
9
    public $uuid;
10
11
    public $date;
12
13
    public $statusCode;
14
15
    public $satSeal;
16
17
    public $satCertificateNumber;
18
19
    public function map(array $attributes)
20
    {
21
        foreach ($attributes as $attribute => $value) {
22
            $this->{$attribute} = $value;
23
        }
24
25
        return $this;
26
    }
27
28
    public function toArray()
29
    {
30
        return [
31
            'xml' => $this->xml,
32
            'uuid' => $this->uuid,
33
            'date' => $this->date,
34
            'status_code' => $this->statusCode,
35
            'sat_seal' => $this->satSeal,
36
            'sat_certificate_number' => $this->satCertificateNumber,
37
        ];
38
    }
39
}
40