Esempio n. 1
0
File: User.php Progetto: JJmaz/dp
 public function __construct($name)
 {
     $this->name = $name;
     // 初期値
     $this->state = UnauthorizedState::getInstance();
     $this->resetCount();
 }
Esempio n. 2
0
 public function nextState()
 {
     // 次の状態(未認証)を返す
     return UnauthorizedState::getInstance();
 }