FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DesignPatternsPHP/Decorator at master · LittleBrain85/DesignPatternsPHP · GitHub
LittleBrain85
DesignPatternsPHP
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
DesignPatternsPHP
/
Decorator
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
Breadcrumbs
DesignPatternsPHP
/
Decorator
/
Copy path
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
Decorator.php
Decorator.php
README.md
README.md
RenderInJson.php
RenderInJson.php
RenderInXml.php
RenderInXml.php
RendererInterface.php
RendererInterface.php
Webservice.php
Webservice.php
README.md
Outline
Decorator
Purpose
To dynamically add new functionality to class instances.
Examples
Zend Framework: decorators for Zend_Form_Element instances
Web Service Layer: Decorators JSON and XML for a REST service (in this case, only one of these should be allowed of course)
Back
|
FazBrowse Home
|
New Git URL