<?php
/**
- * A registry for several data types
+ * A registry for several data types and objects. Objects should be added by
+ * addInstance() and therefore must implement the interface Registerable.
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
if (is_null(self::$registryInstance)) {
// Not yet, so create one
self::$registryInstance = new Registry();
- }
+ } // END - if
// Return the instance
return self::$registryInstance;
// Is the instance there?
if ($this->instanceExists($instanceKey)) {
$objectInstance = $this->instanceRegistry[$instanceKey];
- }
+ } // END - if
// Return the result
return $objectInstance;