* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseFactory extends BaseFrameworkSystem {
- /**
- * An instance of the real factory class
- */
- private $realFactoryInstance = null;
-
/**
* Protected constructor
*
protected function __construct ($className) {
// Call parent constructor
parent::__construct($className);
-
- // Clean up a little
- $this->removeNumberFormaters();
- $this->removeSystemArray();
- }
-
- /**
- * Setter for the *real* factory instance
- *
- * @param $realFactoryInstance An instance of the real factory class
- * @return void
- */
- public final function setRealFactoryInstance (BaseFrameworkSystem $realFactoryInstance) {
- $this->realFactoryInstance = $realFactoryInstance;
- }
-
- /**
- * Getter for the *real* factory instance
- *
- * @return $realFactoryInstance An instance of the real factory class
- */
- protected final function getRealFactoryInstance () {
- return $this->realFactoryInstance;
}
}