Пример #1
0
Файл: User.php Проект: JJmaz/dp
 public function __construct($name)
 {
     $this->name = $name;
     // 初期値
     $this->state = UnauthorizedState::getInstance();
     $this->resetCount();
 }
Пример #2
0
 public function nextState()
 {
     // 次の状態(未認証)を返す
     return UnauthorizedState::getInstance();
 }