protected $errorMessages;
/**
* @param Error[] $errors
*/
public function __construct( ProductExportEntity
$productExportEntity,
array
$errors ) { $errorMessages =
array_merge( ...
array_map( fn (Error
$error) =>
$error->
getErrorMessages(),
$errors ) );
$this->errorMessages =
$errorMessages;
parent::
__construct( sprintf( 'Export file generation for product export %s (%s) resulted in validation errors',
$productExportEntity->
getId(),
$productExportEntity->
getFileName() ),