| 1 | <?php |
||
| 10 | final class SameSite |
||
| 11 | { |
||
| 12 | /** @var bool */ |
||
| 13 | private $strict; |
||
| 14 | |||
| 15 | private function __construct(bool $strict) |
||
| 19 | |||
| 20 | public static function strict() : self |
||
| 24 | |||
| 25 | public static function lax() : self |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @throws \InvalidArgumentException If the given SameSite string is neither strict nor lax. |
||
| 32 | */ |
||
| 33 | public static function fromString(string $sameSite) : self |
||
| 50 | |||
| 51 | public function asString() : string |
||
| 55 | } |
||
| 56 |