Skip to content

Latest commit

 

History

History

decorator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

#Decorator Allows behavior to be added to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class. More…

$figures = new Bar(
    new Circle(
        new Bar(
            new Circle(
                new Void()
            )
        )
    )
);
echo $figures->getInfo() . PHP_EOL;
// Bar Circle Bar Circle

##Diagram Decorator UML Diagram

##Examples