Fixed typo in DepencyInjection directory name
descript examples in Yii Framework for 3 patterns
fix a typo
fixed typo in Singleton
Merge pull request #2 from phybros/master

Fix typo in DependencyInjection directory name
Merge pull request #3 from garrus/master

Added examples in Yii Framework
omitted static declaration
Implicit method visibility (instead of implied public)
Fix typo
Fix PHPDoc in FactoryMethod
Merge pull request #8 from inglobal/master

Static keyword in Singleton.php
Merge pull request #10 from dave1010/patch-2

Fix typo
Merge pull request #9 from dave1010/patch-1

Implicit method visibility (instead of implied public)
Merge pull request #11 from dave1010/patch-3

Fix PHPDoc in FactoryMethod
Proper example of Decorator pattern

Previous example was simply implementing a strategy pattern.

A key problem is that WebService made clear that it did no actual output of its own - it handed it off to 'decorators'.

A decorator should always wrap a class that already has its own complete, self-contained functionality.

In this way, they only enhance / modify it. An instance that is non-decorated should work fully by itself.

Note the distinguishing difference between this and sub-classing - here the enhancement is added dynamically, at runtime, and to one instance.

With sub-classing, the enhancement is added at compile / parse time, and is applied to all instances / uses of the subclass.
added Command pattern