Documentation

EntityCacheKey extends CacheKey
in package

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

Table of Contents

Properties

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

Methods

__construct()  : mixed

Properties

$entityClass

The entity class name

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.

$identifier

The entity identifier

public array<string, mixed> $identifier
Tags
readonly

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

Methods

__construct()

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

The entity class name. In a inheritance hierarchy it should always be the root entity class.

$identifier : array<string, mixed>

The entity identifier

Tags
psalm-param

class-string $entityClass


        
On this page

Search results