UserProfileModel::getOwner()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zibios\WrikePhpJmsserializer\Model\Common;
13
14
use JMS\Serializer\Annotation as SA;
15
use Zibios\WrikePhpJmsserializer\Model\AbstractModel;
16
use Zibios\WrikePhpJmsserializer\Model\ResourceModelInterface;
17
18
/**
19
 * User Profile Model.
20
 */
21 View Code Duplication
class UserProfileModel extends AbstractModel implements ResourceModelInterface
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
22
{
23
    /**
24
     * Account ID.
25
     *
26
     * @SA\Type("string")
27
     * @SA\SerializedName("accountId")
28
     *
29
     * @var string|null
30
     */
31
    protected $accountId;
32
33
    /**
34
     * Email address associated with account.
35
     *
36
     * @SA\Type("string")
37
     * @SA\SerializedName("email")
38
     *
39
     * @var string|null
40
     */
41
    protected $email;
42
43
    /**
44
     * Role in account.
45
     *
46
     * Enum: User, Collaborator
47
     *
48
     * @see \Zibios\WrikePhpLibrary\Enum\UserRoleEnum
49
     *
50
     * @SA\Type("string")
51
     * @SA\SerializedName("role")
52
     *
53
     * @var string|null
54
     */
55
    protected $role;
56
57
    /**
58
     * Is user external.
59
     *
60
     * @SA\Type("boolean")
61
     * @SA\SerializedName("external")
62
     *
63
     * @var bool|null
64
     */
65
    protected $external;
66
67
    /**
68
     * Is user account admin.
69
     *
70
     * @SA\Type("boolean")
71
     * @SA\SerializedName("admin")
72
     *
73
     * @var bool|null
74
     */
75
    protected $admin;
76
77
    /**
78
     * Is user account owner.
79
     *
80
     * @SA\Type("boolean")
81
     * @SA\SerializedName("owner")
82
     *
83
     * @var bool|null
84
     */
85
    protected $owner;
86
87
    /**
88
     * @return null|string
89
     */
90 1
    public function getAccountId()
91
    {
92 1
        return $this->accountId;
93
    }
94
95
    /**
96
     * @param null|string $accountId
97
     *
98
     * @return $this
99
     */
100 1
    public function setAccountId($accountId)
101
    {
102 1
        $this->accountId = $accountId;
103
104 1
        return $this;
105
    }
106
107
    /**
108
     * @return null|string
109
     */
110 1
    public function getEmail()
111
    {
112 1
        return $this->email;
113
    }
114
115
    /**
116
     * @param null|string $email
117
     *
118
     * @return $this
119
     */
120 1
    public function setEmail($email)
121
    {
122 1
        $this->email = $email;
123
124 1
        return $this;
125
    }
126
127
    /**
128
     * @return null|string
129
     */
130 1
    public function getRole()
131
    {
132 1
        return $this->role;
133
    }
134
135
    /**
136
     * @param null|string $role
137
     *
138
     * @return $this
139
     */
140 1
    public function setRole($role)
141
    {
142 1
        $this->role = $role;
143
144 1
        return $this;
145
    }
146
147
    /**
148
     * @return bool|null
149
     */
150 1
    public function getExternal()
151
    {
152 1
        return $this->external;
153
    }
154
155
    /**
156
     * @param bool|null $external
157
     *
158
     * @return $this
159
     */
160 1
    public function setExternal($external)
161
    {
162 1
        $this->external = $external;
163
164 1
        return $this;
165
    }
166
167
    /**
168
     * @return bool|null
169
     */
170 1
    public function getAdmin()
171
    {
172 1
        return $this->admin;
173
    }
174
175
    /**
176
     * @param bool|null $admin
177
     *
178
     * @return $this
179
     */
180 1
    public function setAdmin($admin)
181
    {
182 1
        $this->admin = $admin;
183
184 1
        return $this;
185
    }
186
187
    /**
188
     * @return bool|null
189
     */
190 1
    public function getOwner()
191
    {
192 1
        return $this->owner;
193
    }
194
195
    /**
196
     * @param bool|null $owner
197
     *
198
     * @return $this
199
     */
200 1
    public function setOwner($owner)
201
    {
202 1
        $this->owner = $owner;
203
204 1
        return $this;
205
    }
206
}
207