FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[Original HTTPS Page]
DesignPatternsPHP/FluentInterface at master · willianmk/DesignPatternsPHP · GitHub
willianmk
/
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
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
Breadcrumbs
DesignPatternsPHP
/
FluentInterface
/
Copy path
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
README.md
README.md
SQL.php
SQL.php
README.md
Outline
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