| 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; |
||
| 70 | public function status() |
||
| 71 | { |
||
| 72 | if (!$this->object->isEnabled()) { |
||
| 73 | return 'disabled'; |
||
| 74 | } |
||
| 75 | |||
| 76 | if ($this->object->isEnabled() && !$this->object->isActivated()) { |
||
| 77 | return 'inactive'; |
||
| 78 | } |
||
| 79 | |||
| 80 | if ($this->object->isEnabled() && $this->object->isActivated()) { |
||
| 81 | return 'active'; |
||
| 82 | } |
||
| 83 | |||
| 84 | return null; |
||
| 85 | } |
||
| 86 | } |
||
| 87 |