$reader
$reader : \Doctrine\Common\Annotations\AnnotationReader
Deep-merges any variable.
This class is capable of merging together arrays and objects of the same class; all other types of variables are
replaced. In addition this merger also supports the Replace
annotation; this annotation can be placed on a property
of a class and will indicate that that property must not be merged but replaced in its entirety.
run(mixed $destination, mixed $source, mixed $default = null) : mixed
Merges the source on top of the destination and returns the result.
mixed | $destination | The destination variable that will be overwritten with the data from the source. |
mixed | $source | The source variable that should be merged over the destination. |
mixed | $default | For normal variables; only replace that variable if the provided source does not equal this value. |
the merged variable.
mergeProperty(object $destinationObject, \ReflectionProperty $destinationProperty, object $sourceObject, \ReflectionProperty $sourceProperty, array<mixed,mixed> $defaultPropertyValues) : object
Merges the two properties over eachother.
object | $destinationObject | |
\ReflectionProperty | $destinationProperty | |
object | $sourceObject | |
\ReflectionProperty | $sourceProperty | |
array<mixed,mixed> | $defaultPropertyValues |