Documentation

ReflectionEmbeddedProperty extends ReflectionProperty
in package

Acts as a proxy to a nested Property structure, making it look like just a single scalar property.

This way value objects "just work" without UnitOfWork, Persisters or Hydrators needing any changes.

TODO: Move this class into Common\Reflection

Table of Contents

Properties

$childProperty  : ReflectionProperty
$embeddedClass  : string
$instantiator  : Instantiator|null
$parentProperty  : ReflectionProperty

Methods

__construct()  : mixed
getValue()  : mixed
{@inheritDoc}
setValue()  : void
{@inheritDoc}

Properties

$parentProperty

private ReflectionProperty $parentProperty

reflection property of the class where the embedded object has to be put

Methods

__construct()

public __construct(ReflectionProperty $parentProperty, ReflectionProperty $childProperty, string $embeddedClass) : mixed
Parameters
$parentProperty : ReflectionProperty
$childProperty : ReflectionProperty
$embeddedClass : string

setValue()

{@inheritDoc}

public setValue(mixed $object[, mixed $value = null ]) : void
Parameters
$object : mixed
$value : mixed = null

        
On this page

Search results