<?php
namespace Modules\Admin\ImportEntities\Model; abstract class ImportAbstract { protected $fileData = []; protected $fields = []; protected $dateFormat = null; protected $useDateFormat = FALSE; public function setFileContent($fileData) { $this->fileData = $fileData; } public function useDateFormat() { return $this->useDateFormat; } public function setDateFormat($dateFormat) { $this->dateFormat = $dateFormat; } public function getDateFormat() { return $this->dateFormat; } abstract public function process(); public function getEntityFields() { return $this->fields; } public function checkContent(\App\MessagesCollector $messagesCollector) { return null; } public function analyze() { return null; } protected function safeUppercaseHtmlCleanedText(string $text) :string { return htmlClean( mb_strtoupper( htmlUnclean($text) ) ); } }