mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
27 lines
609 B
PHP
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()}";
|
|
}
|
|
}
|