Conditions | 6 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Anomaly\UsersModule\User; |
||
82 | public function status() |
||
83 | { |
||
84 | if (!$this->object->isEnabled()) { |
||
85 | return 'disabled'; |
||
86 | } |
||
87 | |||
88 | if ($this->object->isEnabled() && !$this->object->isActivated()) { |
||
89 | return 'inactive'; |
||
90 | } |
||
91 | |||
92 | if ($this->object->isEnabled() && $this->object->isActivated()) { |
||
93 | return 'active'; |
||
94 | } |
||
95 | |||
96 | return null; |
||
97 | } |
||
98 | } |
||
99 |