password = null; } /** * Get the generated password. * * If a password generator is registered and successfully generated a password * that password can get read back. Otherwise `null` is returned. * @since 18.0.0 */ public function getPassword(): ?string { return $this->password; } /** * Set the generated password. * * This is used by password generators to set the generated password. * @since 18.0.0 */ public function setPassword(string $password): void { $this->password = $password; } /** * Get the context this password should generated for. * @since 31.0.0 */ public function getContext(): PasswordContext { return $this->context; } }