auth = true; $this->identity = $identity; } public function clearAuthentication(bool $clearIdentity): void { $this->auth = false; $this->identity = $clearIdentity ? null : $this->identity; } public function getState(): array { return [$this->auth, $this->identity, null]; } public function setExpiration(?string $expire, bool $clearIdentity): void { } }