public function __destruct() { foreach ($this->_shutdowners as $shutdownCall) { $bean = $shutdownCall[0]; $method = $shutdownCall[1]; $bean->{$method}(); } }