Skip to content

SameSite

  • Full name: \Qubus\Http\Cookies\SameSite
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Constants

Constant Visibility Type Value
STRICT private 'Strict'
LAX private 'Lax'
NONE private 'None'

Properties

value

private string $value

Methods

__construct

private __construct(string $value): mixed

Parameters:

Parameter Type Description
$value string

strict

public static strict(): self
  • This method is static.

lax

public static lax(): self
  • This method is static.

none

public static none(): self
  • This method is static.

fromString

public static fromString(string $sameSite): self
  • This method is static.

Parameters:

Parameter Type Description
$sameSite string

Throws:

If the given SameSite string is neither strict, lax or none.


asString

public asString(): string


Automatically generated on 2025-10-13