php man page for uopz_compose

Query: uopz_compose

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

UOPZ_COMPOSE(3) 							 1							   UOPZ_COMPOSE(3)

uopz_compose - Compose a class

SYNOPSIS
void uopz_compose (string $name, array $classes, [array $methods], [array $properties], [int $flags])
DESCRIPTION
Creates a new class of the given name that implements, extends, or uses all of the provided classes
PARAMETERS
o $name - A legal class name o $classes - An array of class, interface and trait names o $methods - An associative array of methods, values are either closures or [modifiers => closure] o $properties - An associative array of properties, keys are names, values are modifiers o $flags - Entry type, by default ZEND_ACC_CLASS
RETURN VALUES
EXAMPLES
Example #1 uopz_compose(3) example <?php class myClass {} trait myTrait {} interface myInterface {} uopz_compose( Composed::class, [ myClass::class, myTrait::class, myInterface::class ], [ "__construct" => function() { /* ... */ } ]); var_dump( class_uses(Composed::class), class_parents(Composed::class), class_implements(Composed::class)); ?> The above example will output something similar to: array(1) { ["myTrait"]=> string(7) "myTrait" } array(1) { ["myClass"]=> string(7) "myClass" } array(1) { ["myInterface"]=> string(11) "myInterface" } PHP Documentation Group UOPZ_COMPOSE(3)
Related Man Pages
class_implements(3) - php
aggregate_info(3) - php
get_class_methods(3) - php
yaf_bootstrap_abstract(3) - php
extutils::xspp::node::class(3pm) - debian
Similar Topics in the Unix Linux Community
How to declare an array to take more than 10,000 characters
PHP AJAX 1.0 (Default branch)
Problem with lookup values on AWK associative array
php class
PHP populate variable with function