uopz_compose

PECL uopz 1, PECL uopz 2
uopz_compose - Compose a class
Manual
Code Examples

uopz_compose(
     string$name,
     array$classes,
     [array$methods],
     [array$properties],
     [int$flags]
): void

Creates a new class of the given name that implements, extends, or uses all of the provided classes

Parameters

name

A legal class name

classes

An array of class, interface and trait names

methods

An associative array of methods, values are either closures or [modifiers => closure]

properties

An associative array of properties, keys are names, values are modifiers

flags

Entry type, by default ZEND_ACC_CLASS

Return Values

Example of uopz_compose

Show all examples for uopz_compose

PHP Version: