File "SignInWithEmailAndPassword.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/kreait/firebase-php/src/Firebase/Auth/SignInWithEmailAndPassword.php
File size: 905 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
declare(strict_types=1);
namespace Kreait\Firebase\Auth;
/**
* @internal
*/
final class SignInWithEmailAndPassword implements IsTenantAware, SignIn
{
private ?string $tenantId = null;
private function __construct(private readonly string $email, private readonly string $clearTextPassword)
{
}
public static function fromValues(string $email, string $clearTextPassword): self
{
return new self($email, $clearTextPassword);
}
public function email(): string
{
return $this->email;
}
public function clearTextPassword(): string
{
return $this->clearTextPassword;
}
public function withTenantId(string $tenantId): self
{
$action = clone $this;
$action->tenantId = $tenantId;
return $action;
}
public function tenantId(): ?string
{
return $this->tenantId;
}
}