Home > PHP > Function > Object Aggregation > aggregate()

aggregate()

aggregate - Dynamic class and object aggregation of methods and properties

Syntax

aggregate (object $object, string $class_name)

Arguments

  • object
  • class_name

Description

Aggregates methods and properties defined in a class to an existing object. Methods and properties with names starting with an underscore character (_) are considered private to the aggregated class and are not used, constructors are also excluded from the aggregation procedure.

Version

PHP 4.2.0

Return value

No value is returned.