Issues (1574)

src/Model/PublicatieReference.php (12 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace DMT\Insolvency\Model;
4
5
use DMT\Insolvency\Client;
6
use JMS\Serializer\Annotation as JMS;
7
8
/**
9
 * Class PublicatieReference
10
 *
11
 * @JMS\XmlNamespace("http://www.rechtspraak.nl/namespaces/cir01")
12
 * @JMS\XmlRoot("publicatieKenmerk", namespace="http://www.rechtspraak.nl/namespaces/inspubber01")
0 ignored issues
show
Tag value for @JMS\XmlRoot("publicatieKenmerk", tag indented incorrectly; expected 31 spaces but found 1
Loading history...
13
 */
0 ignored issues
show
Missing @category tag in class comment
Loading history...
Missing @package tag in class comment
Loading history...
Missing @author tag in class comment
Loading history...
Missing @license tag in class comment
Loading history...
Missing @link tag in class comment
Loading history...
14
class PublicatieReference implements ConstructWithClientInterface
15
{
16
    use LazyLoadingPropertyTrait;
17
18
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
19
     * @JMS\Type("string")
20
     * @JMS\XmlValue()
21
     *
22
     * @var string $publicatieKenmerk
23
     */
24
    public $publicatieKenmerk;
25
26
    /**
0 ignored issues
show
Missing short description in doc comment
Loading history...
27
     * @JMS\ReadOnlyProperty()
28
     *
29
     * @var Insolvente $insolvente
30
     */
31
    private $insolvente;
0 ignored issues
show
Private member variable "insolvente" must be prefixed with an underscore
Loading history...
32
33 5
    public function __construct(Client $client)
0 ignored issues
show
Missing doc comment for function __construct()
Loading history...
34
    {
35
        $this->insolvente = function () use ($client) {
0 ignored issues
show
Documentation Bug introduced by
It seems like function(...) { /* ... */ } of type callable is incompatible with the declared type DMT\Insolvency\Model\Insolvente of property $insolvente.

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..

Loading history...
36 5
            return $client->getCase($this->publicatieKenmerk, true);
37
        };
38 5
    }
39
40
41
}
42