public function __construct($name) { $this->name = $name; // 初期値 $this->state = UnauthorizedState::getInstance(); $this->resetCount(); }
public function nextState() { // 次の状態(未認証)を返す return UnauthorizedState::getInstance(); }