Composite Pattern

Package:
Composite Pattern
Summary:
Implementation of the composite design pattern
Groups:
Design Patterns, PHP 5
Author:
Bogdan T. Gersak
Description:
This package presents an implementation of the composite design pattern.

It provides an abstract class that represents a train composition of wagons.

The package also comes with example concrete implementations of train and wagon classes.

This is a simple implementation of Composite Pattern.
In the package can be found three classes: AbstractTrain, Train and Wagon.


Powered by Gewgley