README FluentInterface

This commit is contained in:
Dominik Liebler
2013-09-24 13:33:01 +02:00
parent 851aa0a0d8
commit 1d166d474b
2 changed files with 12 additions and 9 deletions

View File

@@ -3,15 +3,7 @@
namespace DesignPatterns\FluentInterface;
/**
* fluent interface pattern
*
* Purpose:
* to write code that is easy readable just like "real" sentences
*
* Examples:
* - Doctrine2's QueryBuilder works something like that example class below
* - PHPUnit uses fluent interfaces to build mock objects
* - Yii Framework: CDbCommand and CActiveRecord use this pattern, too
* class SQL
*/
class SQL
{