processor = static::create($processor); } /** * @return Events\Processor\Processor */ public function getProcessor() { return $this->processor; } /** * Static function which create the proper processor * @param type $element * @throws \Exception */ abstract public static function create($processor); }