#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
##Examples