Exemple #1
0
 public function hasStatus($status)
 {
     if (!UserStatus::isValid($status)) {
         throw new \Exception("{$status} is not a valid role");
     }
     return $this->status == $status;
 }