new report: week for users (#2494)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user