Documentation

CollectionCacheKey extends CacheKey
in package

Defines entity collection roles to be stored in the cache region.

Table of Contents

Properties

$association  : string
The association name
$entityClass  : string
The owner entity class
$hash  : string
Unique identifier
$ownerIdentifier  : array<string, mixed>
The owner entity identifier

Methods

__construct()  : mixed

Properties

$association

The association name

public string $association
Tags
readonly

Public only for performance reasons, it should be considered immutable.

$entityClass

The owner entity class

public string $entityClass
Tags
readonly

Public only for performance reasons, it should be considered immutable.

psalm-var

class-string

$hash

Unique identifier

public string $hash
Tags
readonly

Public only for performance reasons, it should be considered immutable.

$ownerIdentifier

The owner entity identifier

public array<string, mixed> $ownerIdentifier
Tags
readonly

Public only for performance reasons, it should be considered immutable.

Methods

__construct()

public __construct(string $entityClass, string $association, array<string, mixed> $ownerIdentifier) : mixed
Parameters
$entityClass : string

The entity class.

$association : string

The field name that represents the association.

$ownerIdentifier : array<string, mixed>

The identifier of the owning entity.

Tags
psalm-param

class-string $entityClass


        
On this page

Search results