PermissionPartition
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.
at line 21
bool
matches(mixed $value)
Determine whether a value represents this partition.
at line 30
string
cacheSegment()
Build the collision-safe cache segment for this partition.
at line 39
static string
encodeCacheSegment(int|string|null $value)
Encode a nullable scalar as a collision-safe cache segment.