Completed
Push — master ( a4e567...8b9789 )
by Luke
01:54
created

TenantEligibilityObject::getStudents()   A

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
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace ZpgRtf\Objects;
4
5
/**
6
 * This allows you to specify the eligibility of various classifications of applicant for a tenancy. Note that you do
7
 * not have to specify eligibility for all classifications.
8
 */
9
class TenantEligibilityObject implements \JsonSerializable
10
{
11
    /**
12
     * Enum (accepted, excluded, only)
13
     *
14
     * @var string
15
     */
16
    private $dss;
17
18
    /**
19
     * Enum (accepted, excluded, only)
20
     *
21
     * @var string
22
     */
23
    private $students;
24
25
    /**
26
     * @return string
27
     */
28 1
    public function getDss()
29
    {
30 1
        return $this->dss;
31
    }
32
33
    /**
34
     * @param string $dss
35
     *
36
     * @return TenantEligibilityObject
37
     */
38
    public function setDss($dss)
39
    {
40
        $this->dss = $dss;
41
42
        return $this;
43
    }
44
45
    /**
46
     * @return string
47
     */
48 1
    public function getStudents()
49
    {
50 1
        return $this->students;
51
    }
52
53
    /**
54
     * @param string $students
55
     *
56
     * @return TenantEligibilityObject
57
     */
58
    public function setStudents($students)
59
    {
60
        $this->students = $students;
61
62
        return $this;
63
    }
64
65
    /** {@inheritDoc} */
66 1
    public function jsonSerialize()
67
    {
68
        return [
69 1
            'dss' => $this->getDss(),
70 1
            'students' => $this->getStudents(),
71
        ];
72
    }
73
}
74