1
|
|
|
<?php |
2
|
|
|
|
|
|
|
|
3
|
|
|
namespace DMT\Insolvency\Model; |
4
|
|
|
|
5
|
|
|
use DMT\Insolvency\Client; |
6
|
|
|
use JMS\Serializer\Annotation as JMS; |
7
|
|
|
|
8
|
|
|
/** |
9
|
|
|
* Class Verslag |
10
|
|
|
* |
11
|
|
|
* @JMS\XmlNamespace("http://www.rechtspraak.nl/namespaces/inspubber01") |
12
|
|
|
* @JMS\XmlRoot("verslag", namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
|
|
|
|
13
|
|
|
*/ |
|
|
|
|
14
|
|
|
class Verslag implements ConstructWithClientInterface |
15
|
|
|
{ |
16
|
|
|
use LazyLoadingPropertyTrait; |
17
|
|
|
|
18
|
|
|
/** |
|
|
|
|
19
|
|
|
* @JMS\SerializedName("insolventienummer") |
20
|
|
|
* @JMS\Type("string") |
21
|
|
|
* @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
|
|
|
|
22
|
|
|
* |
23
|
|
|
* @var string $insolventienummer |
24
|
|
|
*/ |
25
|
|
|
public $insolventienummer; |
26
|
|
|
|
27
|
|
|
/** |
|
|
|
|
28
|
|
|
* @JMS\SerializedName("rechtbank") |
29
|
|
|
* @JMS\Type("string") |
30
|
|
|
* @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
|
|
|
|
31
|
|
|
* |
32
|
|
|
* @var string $rechtbank |
33
|
|
|
*/ |
34
|
|
|
public $rechtbank; |
35
|
|
|
|
36
|
|
|
/** |
|
|
|
|
37
|
|
|
* @JMS\SerializedName("publicatiedatumVerslag") |
38
|
|
|
* @JMS\Type("DateTime<'Y-m-d\TH:i:sP'>") |
39
|
|
|
* @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
|
|
|
|
40
|
|
|
* |
41
|
|
|
* @var \DateTime $publicatiedatumVerslag |
42
|
|
|
*/ |
43
|
|
|
public $publicatiedatumVerslag; |
44
|
|
|
|
45
|
|
|
/** |
|
|
|
|
46
|
|
|
* @JMS\SerializedName("kenmerk") |
47
|
|
|
* @JMS\Type("string") |
48
|
|
|
* @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
|
|
|
|
49
|
|
|
* |
50
|
|
|
* @var string $kenmerk |
51
|
|
|
*/ |
52
|
|
|
public $kenmerk; |
53
|
|
|
|
54
|
|
|
/** |
|
|
|
|
55
|
|
|
* @JMS\SerializedName("titel") |
56
|
|
|
* @JMS\Type("string") |
57
|
|
|
* @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
58
|
|
|
* |
59
|
|
|
* @var string $titel |
60
|
|
|
*/ |
61
|
|
|
public $titel; |
62
|
|
|
|
63
|
|
|
/** |
|
|
|
|
64
|
|
|
* @JMS\SerializedName("eindverslag") |
65
|
|
|
* @JMS\Type("bool") |
66
|
|
|
* @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
|
|
|
|
67
|
|
|
* |
68
|
|
|
* @var bool $eindverslag |
69
|
|
|
*/ |
70
|
|
|
public $eindverslag; |
71
|
|
|
|
72
|
|
|
/** |
|
|
|
|
73
|
|
|
* @JMS\SerializedName("uri") |
74
|
|
|
* @JMS\Type("string") |
75
|
|
|
* @JMS\XmlAttribute() |
76
|
|
|
* |
77
|
|
|
* @var string $uri |
78
|
|
|
*/ |
79
|
|
|
public $uri; |
80
|
|
|
|
81
|
|
|
/** |
|
|
|
|
82
|
|
|
* @JMS\ReadOnlyProperty() |
83
|
|
|
* |
84
|
|
|
* @var Document|null $report |
85
|
|
|
*/ |
86
|
|
|
private $report; |
|
|
|
|
87
|
|
|
|
88
|
8 |
|
public function __construct(Client $client) |
|
|
|
|
89
|
|
|
{ |
90
|
|
|
$this->report = function () use ($client) { |
|
|
|
|
91
|
2 |
|
if (!$this->kenmerk) { |
92
|
|
|
return null; |
93
|
|
|
} |
94
|
|
|
|
95
|
2 |
|
$report = $client->getReport($this->kenmerk); |
96
|
|
|
|
97
|
2 |
|
return $report->result->report ?? null; |
98
|
|
|
}; |
99
|
8 |
|
} |
100
|
|
|
} |
101
|
|
|
|