Example #1
0
 /**
  * 指定されたIDのユーザが退会済みかどうかチェック
  *
  * @param int  $userId
  *
  * @return bool
  */
 public function isRetire($userId)
 {
     $status = $this->userRoleRepo->getByUserId($userId);
     if (is_null($status)) {
         return false;
     }
     return $status->name === '退会済み';
 }