PagedResult::getResults()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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