class ReflectionEmbeddedProperty extends ReflectionProperty (View source)

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

Methods

__construct(ReflectionProperty $parentProperty, ReflectionProperty $childProperty, $embeddedClass)

No description

getValue($object = null)

{@inheritDoc}

setValue($object, $value = null)

{@inheritDoc}

Details

__construct(ReflectionProperty $parentProperty, ReflectionProperty $childProperty, $embeddedClass)

Parameters

ReflectionProperty $parentProperty
ReflectionProperty $childProperty
$embeddedClass

getValue($object = null)

{@inheritDoc}

Parameters

$object

setValue($object, $value = null)

{@inheritDoc}

Parameters

$object
$value