1 | <?php |
||
2 | |||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
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") |
||
0 ignored issues
–
show
|
|||
13 | */ |
||
0 ignored issues
–
show
|
|||
14 | class Verslag implements ConstructWithClientInterface |
||
15 | { |
||
16 | use LazyLoadingPropertyTrait; |
||
17 | |||
18 | /** |
||
0 ignored issues
–
show
|
|||
19 | * @JMS\SerializedName("insolventienummer") |
||
20 | * @JMS\Type("string") |
||
21 | * @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
||
0 ignored issues
–
show
|
|||
22 | * |
||
23 | * @var string $insolventienummer |
||
24 | */ |
||
25 | public $insolventienummer; |
||
26 | |||
27 | /** |
||
0 ignored issues
–
show
|
|||
28 | * @JMS\SerializedName("rechtbank") |
||
29 | * @JMS\Type("string") |
||
30 | * @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
||
0 ignored issues
–
show
|
|||
31 | * |
||
32 | * @var string $rechtbank |
||
33 | */ |
||
34 | public $rechtbank; |
||
35 | |||
36 | /** |
||
0 ignored issues
–
show
|
|||
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") |
||
0 ignored issues
–
show
|
|||
40 | * |
||
41 | * @var \DateTime $publicatiedatumVerslag |
||
42 | */ |
||
43 | public $publicatiedatumVerslag; |
||
44 | |||
45 | /** |
||
0 ignored issues
–
show
|
|||
46 | * @JMS\SerializedName("kenmerk") |
||
47 | * @JMS\Type("string") |
||
48 | * @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
||
0 ignored issues
–
show
|
|||
49 | * |
||
50 | * @var string $kenmerk |
||
51 | */ |
||
52 | public $kenmerk; |
||
53 | |||
54 | /** |
||
0 ignored issues
–
show
|
|||
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 | /** |
||
0 ignored issues
–
show
|
|||
64 | * @JMS\SerializedName("eindverslag") |
||
65 | * @JMS\Type("bool") |
||
66 | * @JMS\XmlElement(cdata=false, namespace="http://www.rechtspraak.nl/namespaces/inspubber01") |
||
0 ignored issues
–
show
|
|||
67 | * |
||
68 | * @var bool $eindverslag |
||
69 | */ |
||
70 | public $eindverslag; |
||
71 | |||
72 | /** |
||
0 ignored issues
–
show
|
|||
73 | * @JMS\SerializedName("uri") |
||
74 | * @JMS\Type("string") |
||
75 | * @JMS\XmlAttribute() |
||
76 | * |
||
77 | * @var string $uri |
||
78 | */ |
||
79 | public $uri; |
||
80 | |||
81 | /** |
||
0 ignored issues
–
show
|
|||
82 | * @JMS\ReadOnlyProperty() |
||
83 | * |
||
84 | * @var Document|null $report |
||
85 | */ |
||
86 | private $report; |
||
0 ignored issues
–
show
|
|||
87 | |||
88 | 7 | public function __construct(Client $client) |
|
0 ignored issues
–
show
|
|||
89 | { |
||
90 | $this->report = function () use ($client) { |
||
0 ignored issues
–
show
It seems like
function(...) { /* ... */ } of type callable is incompatible with the declared type DMT\Insolvency\Model\Document|null of property $report .
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. ![]() |
|||
91 | 2 | if (!$this->kenmerk) { |
|
92 | return null; |
||
93 | } |
||
94 | 2 | return $client->getReport($this->kenmerk); |
|
95 | }; |
||
96 | 7 | } |
|
97 | } |
||
98 |