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