ReflectionService implements SingletonInterface
Reflection service for acquiring reflection based information.
Originally based on the TYPO3.Flow reflection service.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $classSchemata : array<string|int, mixed>
- Local cache for Class schemata
- $dataCache : FrontendInterface
- $dataCacheNeedsUpdate : bool
- Indicates whether the Reflection cache needs to be updated.
Methods
- __construct() : mixed
- __destruct() : mixed
- __sleep() : array<string|int, mixed>
- __wakeup() : void
- getClassSchema() : ClassSchema
- Returns the class schema for the given class
- buildClassSchema() : ClassSchema
- Builds class schemata from classes annotated as entities or value objects
Properties
$classSchemata
Local cache for Class schemata
protected
array<string|int, mixed>
$classSchemata
= []
$dataCache
protected
FrontendInterface
$dataCache
$dataCacheNeedsUpdate
Indicates whether the Reflection cache needs to be updated.
protected
bool
$dataCacheNeedsUpdate
= false
This flag needs to be set as soon as new Reflection information was created.
Methods
__construct()
public
__construct(FrontendInterface $cache, string $cacheIdentifier) : mixed
Parameters
- $cache : FrontendInterface
- $cacheIdentifier : string
__destruct()
public
__destruct() : mixed
__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__wakeup()
public
__wakeup() : void
getClassSchema()
Returns the class schema for the given class
public
getClassSchema(mixed $classNameOrObject) : ClassSchema
Parameters
- $classNameOrObject : mixed
-
The class name or an object
Tags
Return values
ClassSchemabuildClassSchema()
Builds class schemata from classes annotated as entities or value objects
protected
buildClassSchema(string $className) : ClassSchema
Parameters
- $className : string
Tags
Return values
ClassSchema —The class schema