Gumbo_Interface_Flyweight



Flyweight Interface

This interface is modeled after the Flyweight Design Pattern. When many objects must be manipulated but the program cannot afford to have extraneous data, the Flyweight should be used. The idea works similar to a Factory, except it saves the object internally. This can be used later in the program when the same object type is needed.

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Interface Methods

public StdClass get ( [mixed $data] ) [line 46]

Returns the object reference passing the data

Parameter(s):

  • (mixed) $data :: data to populate the object (varies based on implementing Class)
  • return:  varies based on implementing Class

[ Top ]