/** * Creates a new DependentPostList object. * * @param Thread $thread * @param Board $board */ public function __construct(Thread $thread, Board $board) { $this->thread = $thread; $this->board = $board; $this->canViewAttachmentPreview = $this->board->getPermission('canViewAttachmentPreview') || $this->board->getPermission('canDownloadAttachment'); parent::__construct(); }