PHP Classes

Composite Pattern: Implementation of the composite design pattern

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 665 All time: 4,851 This week: 455Up
Version License PHP version Categories
composite-pattern 1.0GNU General Publi...5.0PHP 5, Design Patterns
Description 

Author

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.

Picture of Bogdan T. Gersak
Name: Bogdan T. Gersak <contact>
Classes: 1 package by
Country: Romania Romania
Age: 40
All time rank: 291156 in Romania Romania
Week rank: 170 Up4 in Romania Romania Up

Screenshots (1)  
  • composite_diagram.png
  Files folder image Files (5)  
File Role Description
Plain text file AbstractTrain.php Class Abstract train class
Accessible without login Plain text file index.php Example How to use it
Plain text file Train.php Class Train class
Plain text file Wagon.php Class Wagon class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:665
This week:0
All time:4,851
This week:455Up