Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)
This commit is contained in:
@@ -11,22 +11,16 @@ namespace App\Repository\Query;
|
||||
|
||||
class ExportQuery extends TimesheetQuery
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $renderer;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $markAsExported = false;
|
||||
private ?string $renderer = null;
|
||||
private bool $markAsExported = true;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->setDefaults([
|
||||
'order' => ExportQuery::ORDER_ASC,
|
||||
'state' => ExportQuery::STATE_STOPPED,
|
||||
'exported' => ExportQuery::STATE_NOT_EXPORTED,
|
||||
'order' => BaseQuery::ORDER_ASC,
|
||||
'state' => TimesheetQuery::STATE_STOPPED,
|
||||
'exported' => TimesheetQuery::STATE_NOT_EXPORTED,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -47,8 +41,11 @@ class ExportQuery extends TimesheetQuery
|
||||
return $this->markAsExported;
|
||||
}
|
||||
|
||||
public function setMarkAsExported(bool $markAsExported): ExportQuery
|
||||
public function setMarkAsExported(?bool $markAsExported): ExportQuery
|
||||
{
|
||||
if ($markAsExported === null) {
|
||||
$markAsExported = false;
|
||||
}
|
||||
$this->markAsExported = $markAsExported;
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user