Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)

This commit is contained in:
Kevin Papst
2022-12-31 21:19:55 +01:00
committed by GitHub
parent 95e06746bd
commit 90a0fd8a22
2164 changed files with 83700 additions and 86426 deletions

View File

@@ -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;