FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DesignPatternsPHP/FluentInterface/README.md at master · EndlessCoding/DesignPatternsPHP · GitHub
EndlessCoding
/
DesignPatternsPHP
Public
forked from
DesignPatternsPHP/DesignPatternsPHP
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
DesignPatternsPHP
/
FluentInterface
/
README.md
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (7 loc) · 336 Bytes
Breadcrumbs
DesignPatternsPHP
/
FluentInterface
/
README.md
Copy path
File metadata and controls
11 lines (7 loc) · 336 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
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
Back
|
FazBrowse Home
|
New Git URL