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

27 lines
609 B
PHP

<?php
namespace Gazelle\Report;
class ForumPost extends AbstractReport {
public function __construct(
protected int $reportId,
protected \Gazelle\ForumPost $subject
) { }
public function template(): string {
return 'report/forum-post.twig';
}
public function bbLink(): string {
return "[thread]{$this->subject->thread()->id()}:{$this->subject->id()}[/thread]";
}
public function titlePrefix(): string {
return "Forum Post Report: ";
}
public function title(): string {
return "Post ID #{$this->subject->id()}";
}
}