Login   Register  
PHP Classes
elePHPant
Icontem

Composite Pattern: Implementation of the composite design pattern

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-02-09 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 616 This week: 1All time: 4,674 This week: 1,384Up
Version License PHP version Categories  
composite-pattern 1.0GNU General Public Lice...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: 30
All time rank: 269357 in Romania Romania
Week rank: 1063 Up28 in Romania Romania Up

Screenshots  
  • composite_diagram.png
  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%Total:616All time:4,674
 This week:1This week:1,384Up