28 lines
452 B
PHP
28 lines
452 B
PHP
<?php
|
|
|
|
namespace App\Auth;
|
|
|
|
class AuthCookieSettings
|
|
{
|
|
public function __construct(
|
|
private bool $secure,
|
|
private ?string $domain,
|
|
private string $sameSite,
|
|
) {
|
|
}
|
|
|
|
public function isSecure(): bool
|
|
{
|
|
return $this->secure;
|
|
}
|
|
|
|
public function getDomain(): ?string
|
|
{
|
|
return $this->domain;
|
|
}
|
|
|
|
public function getSameSite(): string
|
|
{
|
|
return $this->sameSite;
|
|
}
|
|
}
|