Provides features for merging object properties recursively with parent classes.
Merge a single property with the values declared in all parent classes.
Merge each of the keys in a property together.
Merge the list of $properties with all parent classes of the current class.
_mergeProperty(string $property, array<string> $parentClasses, array<string, mixed> $options): void
Merge a single property with the values declared in all parent classes.
string $property The name of the property being merged.
array<string> $parentClasses An array of classes you want to merge with.
array<string, mixed> $options Options for merging the property, see _mergeVars()
void_mergePropertyData(array $current, array $parent, bool $isAssoc): array
Merge each of the keys in a property together.
array $current The current merged value.
array $parent The parent class' value.
bool $isAssoc Whether the merging should be done in associative mode.
array_mergeVars(array<string> $properties, array<string, mixed> $options = []): void
Merge the list of $properties with all parent classes of the current class.
associative - A list of properties that should be treated as associative arrays. Properties in this list will be passed through Hash::normalize() before merging.array<string> $properties An array of properties and the merge strategy for them.
array<string, mixed> $options optional The options to use when merging properties.
void
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/trait-Cake.Utility.MergeVariablesTrait.html