'"%s" has been generated!' ); /** * @var string */ protected $_name = null; /** * @var array */ protected $_options = array(); /** * @param array $options */ public function __construct(array $options = array()) { $this->setOptions($options); return $this; } /** * @param $options * @return App_Admin_Tool_Project_Provider_Abstract */ public function setOptions($options) { if (isset($options['options'])) { unset($options['options']); } foreach ($options as $key => $value) { $method = 'set' . ucfirst($key); if (method_exists($this, $method)) { $this->$method($value); } else { $this->_options[$key] = $value; } } return $this; } /** * @abstract * @param array $options * @return Qs_Form */ abstract public function getWorkflowAreaForm(array $options); /** * @static * @param string $key * @return string|array * @throws Exception */ public static function getMessage($key) { throw new Exception('Method not implemented'); } }