public function addPlugin(ezcWorkflowExecutionPlugin $plugin) { $pluginClass = get_class($plugin); if (!isset($this->plugins[$pluginClass])) { $this->plugins[$pluginClass] = $plugin; return true; } else { return false; } }