mirror of
https://github.com/flarum/core.git
synced 2025-10-17 17:56:14 +02:00
49 lines
961 B
PHP
49 lines
961 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Discussion\Command;
|
|
|
|
use Flarum\User\User;
|
|
|
|
class StartDiscussion
|
|
{
|
|
/**
|
|
* The user authoring the discussion.
|
|
*
|
|
* @var User
|
|
*/
|
|
public $actor;
|
|
|
|
/**
|
|
* The discussion attributes.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $data;
|
|
|
|
/**
|
|
* The current ip address of the actor.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $ipAddress;
|
|
|
|
/**
|
|
* @param User $actor The user authoring the discussion.
|
|
* @param array $data The discussion attributes.
|
|
* @param string $ipAddress The current ip address of the actor.
|
|
*/
|
|
public function __construct(User $actor, array $data, string $ipAddress)
|
|
{
|
|
$this->actor = $actor;
|
|
$this->data = $data;
|
|
$this->ipAddress = $ipAddress;
|
|
}
|
|
}
|