/** * @return array|string */ public function process() { if (!empty($this->_processor)) { $this->beforeSet(); $this->_processor->setProperties($this->getProperties()); $this->_processor->process(); return $this->_processor->hasErrors() ? $this->failure() : $this->cleanup(); } else { return parent::process(); } }