www.gusucode.com > Flarum中文优化论坛PHP源码程序 > FlarumChina-master/vendor/flarum/core/src/Core/Command/ReadDiscussion.php
<?php /* * This file is part of Flarum. * * (c) Toby Zerner <toby.zerner@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Flarum\Core\Command; use Flarum\Core\User; class ReadDiscussion { /** * The ID of the discussion to mark as read. * * @var int */ public $discussionId; /** * The user to mark the discussion as read for. * * @var User */ public $actor; /** * The number of the post to mark as read. * * @var int */ public $readNumber; /** * @param int $discussionId The ID of the discussion to mark as read. * @param User $actor The user to mark the discussion as read for. * @param int $readNumber The number of the post to mark as read. */ public function __construct($discussionId, User $actor, $readNumber) { $this->discussionId = $discussionId; $this->actor = $actor; $this->readNumber = $readNumber; } }