Completed
Pull Request — master (#1)
by
unknown
02:10
created

Administrator::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Onfleet;
4
5
/**
6
 * Class Administrator
7
 * @package Onfleet
8
 */
9
class Administrator extends Entity
10
{
11
    const TYPE_CREATOR    = 'super';
12
    const TYPE_DISPATCHER = 'standard';
13
14
    protected $name;
15
    protected $email;
16
    protected $phone;
17
    protected $type;
18
    protected $isActive;
19
    protected $timeCreated;
20
    protected $timeLastModified;
21
    protected $organization;
22
    protected $metadata = [];
23
24
    protected $endpoint = 'admins';
25
26
    protected static $properties = [
27
        'id',
28
        'name',
29
        'email',
30
        'phone',
31
        'isActive',
32
        'organization',
33
        'type',
34
        'metadata',
35
        'timeCreated',
36
        'timeLastModified',
37
    ];
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getName()
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @param mixed $name
49
     */
50
    public function setName($name)
51
    {
52
        $this->name = $name;
53
    }
54
55
    /**
56
     * @return mixed
57
     */
58
    public function getEmail()
59
    {
60
        return $this->email;
61
    }
62
63
    /**
64
     * @param mixed $email
65
     */
66
    public function setEmail($email)
67
    {
68
        $this->email = $email;
69
    }
70
71
    /**
72
     * @return mixed
73
     */
74
    public function getPhone()
75
    {
76
        return $this->phone;
77
    }
78
79
    /**
80
     * @param mixed $phone
81
     */
82
    public function setPhone($phone)
83
    {
84
        $this->phone = $phone;
85
    }
86
87
    /**
88
     * @return mixed
89
     */
90
    public function getType()
91
    {
92
        return $this->type;
93
    }
94
95
    /**
96
     * @param mixed $type
97
     */
98
    public function setType($type)
99
    {
100
        $this->type = $type;
101
    }
102
103
    /**
104
     * @return boolean
105
     */
106
    public function isActive()
107
    {
108
        return $this->isActive;
109
    }
110
111
    /**
112
     * @return mixed
113
     */
114
    public function getTimeCreated()
115
    {
116
        return $this->timeCreated;
117
    }
118
119
    /**
120
     * @return mixed
121
     */
122
    public function getTimeLastModified()
123
    {
124
        return $this->timeLastModified;
125
    }
126
127
    /**
128
     * @return mixed
129
     */
130
    public function getOrganization()
131
    {
132
        return $this->organization;
133
    }
134
135
    /**
136
     * @return array
137
     */
138
    public function getMetadata(): array
139
    {
140
        return $this->metadata;
141
    }
142
}
143
144