* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\HeaderStamp; /** * Reporter in charge of reporting what HeaderStamp has done */ class Reporter { /** * @var array> */ private $report = [ 'fixed' => [], 'ignored' => [], 'failed' => [], ]; public function reportLicenseHasBeenFixed(string $fixedFilename): void { $this->report['fixed'][] = $fixedFilename; } public function reportLicenseWasFine(string $fixedFilename): void { $this->report['nothing to fix'][] = $fixedFilename; } public function reportLicenseCouldNotBeFixed(string $fixedFilename): void { $this->report['failed'][] = $fixedFilename; } /** * @return array> */ public function getReport(): array { return $this->report; } }