new report: week for users (#2494)

This commit is contained in:
Kevin Papst
2021-04-07 22:20:19 +02:00
committed by GitHub
parent cdad5913ca
commit 2ce6e815ff
27 changed files with 729 additions and 510 deletions

View File

@@ -14,12 +14,16 @@ final class Report implements ReportInterface
private $id;
private $label;
private $route;
private $reportIcon = 'reporting';
public function __construct(string $id, string $route, string $label)
public function __construct(string $id, string $route, string $label, ?string $reportIcon = null)
{
$this->id = $id;
$this->route = $route;
$this->label = $label;
if (null !== $reportIcon) {
$this->reportIcon = $reportIcon;
}
}
public function getRoute(): string
@@ -36,4 +40,9 @@ final class Report implements ReportInterface
{
return $this->label;
}
public function getReportIcon(): string
{
return $this->reportIcon;
}
}