Total Complexity | 10 |
Total Lines | 125 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class SuspendedAccount |
||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | public $owner; |
||
12 | |||
13 | /** |
||
14 | * @var \DateTime |
||
15 | */ |
||
16 | public $time; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | public $reason; |
||
22 | |||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | public $isLocked; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | public $user; |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getOwner() |
||
37 | { |
||
38 | return $this->owner; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param string $owner |
||
43 | * |
||
44 | * @return SuspendedAccount |
||
45 | */ |
||
46 | public function setOwner($owner) |
||
47 | { |
||
48 | $this->owner = $owner; |
||
49 | |||
50 | return $this; |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return \DateTime |
||
55 | */ |
||
56 | public function getTime() |
||
57 | { |
||
58 | return $this->time; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @param \DateTime $time |
||
63 | * |
||
64 | * @return SuspendedAccount |
||
65 | */ |
||
66 | public function setTime($time) |
||
67 | { |
||
68 | $this->time = $time; |
||
69 | |||
70 | return $this; |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getReason() |
||
77 | { |
||
78 | return $this->reason; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @param string $reason |
||
83 | * |
||
84 | * @return SuspendedAccount |
||
85 | */ |
||
86 | public function setReason($reason) |
||
87 | { |
||
88 | $this->reason = $reason; |
||
89 | |||
90 | return $this; |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * @return bool |
||
95 | */ |
||
96 | public function isLocked() |
||
97 | { |
||
98 | return $this->isLocked; |
||
99 | } |
||
100 | |||
101 | /** |
||
102 | * @param bool $isLocked |
||
103 | * |
||
104 | * @return SuspendedAccount |
||
105 | */ |
||
106 | public function setIsLocked($isLocked) |
||
107 | { |
||
108 | $this->isLocked = $isLocked; |
||
109 | |||
110 | return $this; |
||
111 | } |
||
112 | |||
113 | /** |
||
114 | * @return string |
||
115 | */ |
||
116 | public function getUser() |
||
119 | } |
||
120 | |||
121 | /** |
||
122 | * @param string $user |
||
123 | * |
||
124 | * @return SuspendedAccount |
||
125 | */ |
||
126 | public function setUser($user) |
||
131 | } |
||
132 | } |