PublicatieReference   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 6
c 1
b 0
f 1
dl 0
loc 23
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
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
Coding Style introduced by
Tag value for @JMS\XmlRoot("publicatieKenmerk", tag indented incorrectly; expected 31 spaces but found 1
Loading history...
13
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
14
class PublicatieReference implements ConstructWithClientInterface
15
{
16
    use LazyLoadingPropertyTrait;
17
18
    /**
0 ignored issues
show
Coding Style introduced by
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
Coding Style introduced by
Missing short description in doc comment
Loading history...
27
     * @JMS\ReadOnlyProperty()
28
     *
29
     * @var Insolvente $insolvente
30
     */
31
    private $insolvente;
0 ignored issues
show
Coding Style introduced by
Private member variable "insolvente" must be prefixed with an underscore
Loading history...
32
33 5
    public function __construct(Client $client)
0 ignored issues
show
Coding Style introduced by
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