News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Fluent Interfaces in PHP
December 20, 2006 @ 08:55:00

The Zend Developer Zone has posted a new article from editor of the dZone, Cal Evans, looking at using fluent interfaces in PHP.

Fluent Interfaces are not a new programming construct. However, PHP developers have not been able to use them until PHP 5. Now with PHP 5 and the ability to directly dereference an object, PHP developers can build objects using fluent interfaces.

He starts off with a look at what they are and how (and why) they can be used in an application. He includes code example to help show how you would create an interface (makeNormal).

The code and other information are pulled from a few sources: Cal also mentions what he got into the fluent interfaces game for - creating a tag cloud with a fluent interface over the normal arguments/properties method.

0 comments voice your opinion now!
fluent interface mikenaberenzy martinfowler pauljones fluent interface mikenaberenzy martinfowler pauljones


blog comments powered by Disqus

Similar Posts

DevShed: User-defined Interfaces in PHP 5 - Turning MySQL Classes into Interface Implementers

DevShed: User-defined Interfaces in PHP 5 - Introduction to Core Concepts

Padraic Brady's Blog: Interfacing The PHP World Would Be Good

DevShed: User-defined Interfaces in PHP 5 - Introduction to Core Concepts

JSLabs Blog: How to use the facebook API


Community Events





Don't see your event here?
Let us know!


series interview code threedevsandamaybe library introduction developer install language community list podcast framework release laravel configure wordpress api bugfix application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework