Documentation

AssociationCacheEntry
in package
implements CacheEntry

Association cache entry

Table of Contents

Interfaces

CacheEntry
Cache entry interface

Properties

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

Methods

__construct()  : mixed
__set_state()  : AssociationCacheEntry
Creates a new AssociationCacheEntry

Properties

$class

The entity class name

public string $class
Tags
readonly

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

psalm-var

class-string

$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 $class, array<string, mixed> $identifier) : mixed
Parameters
$class : string

The entity class.

$identifier : array<string, mixed>

The entity identifier.

Tags
psalm-param

class-string $class

__set_state()

Creates a new AssociationCacheEntry

public static __set_state(array<string, mixed> $values) : AssociationCacheEntry

This method allow Doctrine\Common\Cache\PhpFileCache compatibility

Parameters
$values : array<string, mixed>

array containing property values

Return values
AssociationCacheEntry

        
On this page

Search results