2 declare(strict_types=1);
3 namespace wcf\system\moderation\queue\report;
4 use wcf\data\moderation\queue\ViewableModerationQueue;
5 use wcf\system\moderation\queue\AbstractCommentResponseModerationQueueHandler;
8 * An implementation of IModerationQueueReportHandler for comment responses.
10 * @author Alexander Ebert
11 * @copyright 2001-2018 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\Moderation\Queue
15 class CommentResponseModerationQueueReportHandler extends AbstractCommentResponseModerationQueueHandler implements IModerationQueueReportHandler {
19 public function canReport($objectID) {
20 if (!$this->isValid($objectID)) {
24 $response = $this->getResponse($objectID);
25 $comment = $this->getComment($response->commentID);
26 if (!$this->getCommentManager($comment)->isAccessible($comment->objectID)) {
36 public function getReportedContent(ViewableModerationQueue $queue) {
37 return $this->getRelatedContent($queue);
43 public function getReportedObject($objectID) {
44 return $this->getResponse($objectID);