* @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ abstract class InstallAbstractModel { /** * @var InstallLanguages */ public $language; /** * @var array List of errors */ protected $errors = array(); public function __construct() { $this->language = InstallLanguages::getInstance(); } public function setError($errors) { if (!is_array($errors)) $errors = array($errors); $this->errors[] = $errors; } public function getErrors() { return $this->errors; } }