PagedResult   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 48
c 0
b 0
f 0
ccs 9
cts 9
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getPaging() 0 3 1
A setPaging() 0 3 1
A getResults() 0 3 1
A setResults() 0 3 1
1
<?php
2
3
namespace DMT\WebservicesNl\Client\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Class PagedResult
9
 *
10
 * @JMS\AccessType("public_method")
11
 */
12
class PagedResult
13
{
14
    /**
15
     * @JMS\SerializedName("paging")
16
     * @JMS\Type("DMT\WebservicesNl\Client\Model\ResultInfo")
17
     * @JMS\XmlElement(cdata=false)
18
     *
19
     * @var ResultInfo
20
     */
21
    protected $paging;
22
23
    /**
24
     * The JMS annotation definitions will be set in concrete class.
25
     *
26
     * @var array
27
     */
28
    protected $results;
29
30
    /**
31
     * @return ResultInfo
32
     */
33 2
    public function getPaging(): ?ResultInfo
34
    {
35 2
        return $this->paging;
36
    }
37
38
    /**
39
     * @param ResultInfo $paging
40
     */
41 2
    public function setPaging(ResultInfo $paging): void
42
    {
43 2
        $this->paging = $paging;
44 2
    }
45
46
    /**
47
     * @return array
48
     */
49 2
    public function getResults(): ?array
50
    {
51 2
        return $this->results;
52
    }
53
54
    /**
55
     * @param array $results
56
     */
57 2
    public function setResults(array $results): void
58
    {
59 2
        $this->results = $results;
60 2
    }
61
}
62