mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-03 17:52:06 +02:00
start a restructure
This commit is contained in:
11
Structural/FluentInterface/README.md
Normal file
11
Structural/FluentInterface/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Fluent Interface
|
||||
|
||||
## Purpose
|
||||
|
||||
To write code that is easy readable just like sentences in a natural language (like English).
|
||||
|
||||
## 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
|
Reference in New Issue
Block a user