Skip to content

Files

Latest commit

 

History

History
24 lines (21 loc) · 599 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 599 Bytes

#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