Files
ops-Gazelle/app/Report/User.php
2024-12-20 09:39:21 +01:00

27 lines
577 B
PHP

<?php
namespace Gazelle\Report;
class User extends AbstractReport {
public function __construct(
protected readonly int $reportId,
protected readonly \Gazelle\User $subject,
) { }
public function template(): string {
return 'report/user.twig';
}
public function bbLink(): string {
return "the user [user]{$this->subject->username()}[/user]";
}
public function titlePrefix(): string {
return 'User Report: ';
}
public function title(): string {
return $this->subject->username();
}
}