Flarum\Core\Command\PostReply::__construct PHP Method

__construct() public method

public __construct ( integer $discussionId, User $actor, array $data, string $ipAddress = null )
$discussionId integer The ID of the discussion to post the reply to.
$actor Flarum\Core\User The user who is performing the action.
$data array The attributes to assign to the new post.
$ipAddress string The IP address of the actor.
    public function __construct($discussionId, User $actor, array $data, $ipAddress = null)
    {
        $this->discussionId = $discussionId;
        $this->actor = $actor;
        $this->data = $data;
        $this->ipAddress = $ipAddress;
    }
PostReply