add var $success which is set to false if the conversion fails

This commit is contained in:
Uwe Steinmann 2023-01-05 08:04:07 +01:00
parent 99ee18a336
commit 4540f85745

View File

@ -36,9 +36,15 @@ abstract class SeedDMS_ConversionServiceBase {
*/ */
protected $logger; protected $logger;
/**
* @var $success set to false if conversion failed
*/
protected $success;
public function __construct() { public function __construct() {
$this->from = null; $this->from = null;
$this->to = null; $this->to = null;
$this->success = true;
} }
public function setLogger($logger) { public function setLogger($logger) {
@ -53,6 +59,10 @@ abstract class SeedDMS_ConversionServiceBase {
return []; return [];
} /* }}} */ } /* }}} */
public function wasSuccessful() { /* {{{ */
return $this->success;
} /* }}} */
/** /**
* This method does the conversion * This method does the conversion
* *