Total Complexity | 8 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class Mandate extends \Lendable\GoCardlessEnterprise\Model\Mandate |
||
6 | { |
||
7 | /** |
||
8 | * @var \DateTimeInterface |
||
9 | */ |
||
10 | protected $updated; |
||
11 | |||
12 | /** |
||
13 | * @return \DateTimeInterface |
||
14 | */ |
||
15 | public function getUpdated() |
||
16 | { |
||
17 | return $this->updated; |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param \DateTimeInterface $updated |
||
22 | */ |
||
23 | public function setUpdated(\DateTimeInterface $updated) |
||
24 | { |
||
25 | $this->updated = $updated; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $pdfPath; |
||
32 | |||
33 | /** |
||
34 | * @param string $path |
||
35 | */ |
||
36 | public function setPdfPath($path) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getPdfPath() |
||
45 | { |
||
46 | return $this->pdfPath; |
||
47 | } |
||
48 | |||
49 | public function toArray() |
||
50 | { |
||
51 | $arr = parent::toArray(); |
||
52 | if (array_key_exists('pdfPath', $arr)) { |
||
53 | unset($arr['pdfPath']); |
||
54 | } |
||
55 | |||
56 | return $arr; |
||
57 | } |
||
58 | |||
59 | public function fromArray($data) |
||
60 | { |
||
61 | parent::fromArray($data); |
||
62 | $this->setCreatedAt(new \DateTime($this->getCreatedAt())); |
||
|
|||
63 | } |
||
64 | |||
65 | /** |
||
66 | * @return bool |
||
67 | */ |
||
68 | public function isActive() |
||
71 | } |
||
72 | } |
||
73 |