* @return void
*/
public function addInstance ($instanceKey, Registerable $objectInstance) {
- $this->pushValueToGenericArrayElement('registry', 'instance', $instanceKey, $objectInstance);
+ $this->setGenericArrayKey('registry', 'instance', $instanceKey, $objectInstance);
}
/**
* @return void
*/
public final function addEntry ($key, $value) {
+ // Key must not be an array
+ assert(!is_array($key));
+
// Push it
$this->pushValueToGenericArrayElement('raw', 'generic', $key, $value);
}
* @return $entries An array with entries from this registry
*/
public final function getEntries ($key = NULL) {
+ // Key must not be an array
+ assert(!is_array($key));
+
// Default is whole array
$entries = $this->getGenericArray('raw');
* @return $entry An array with all keys
*/
public function getArrayFromKey ($arrayKey, $lookFor) {
+ // Key must not be an array
+ assert(!is_array($arrayKey));
+
// Init array
$entry = array();