final class PermissionPartition

Methods

__construct(string $column, int|string $value)

Create a resolved permission partition.

bool
matches(mixed $value)

Determine whether a value represents this partition.

string
cacheSegment()

Build the collision-safe cache segment for this partition.

static string
encodeCacheSegment(int|string|null $value)

Encode a nullable scalar as a collision-safe cache segment.

Details

at line 12
__construct(string $column, int|string $value)

Create a resolved permission partition.

Parameters

string $column
int|string $value

at line 21
bool matches(mixed $value)

Determine whether a value represents this partition.

Parameters

mixed $value

Return Value

bool

at line 30
string cacheSegment()

Build the collision-safe cache segment for this partition.

Return Value

string

at line 39
static string encodeCacheSegment(int|string|null $value)

Encode a nullable scalar as a collision-safe cache segment.

Parameters

int|string|null $value

Return Value

string