mirror of
https://github.com/friendica/friendica
synced 2025-04-25 19:10:11 +00:00
Changed parameter order
This commit is contained in:
parent
dc73cbe30c
commit
cef4349421
5 changed files with 19 additions and 17 deletions
|
@ -23,21 +23,21 @@ namespace Friendica\Moderation\Entity;
|
|||
|
||||
/**
|
||||
* @property-read int $id
|
||||
* @property-read int $uid
|
||||
* @property-read int $reporterId
|
||||
* @property-read int $cid
|
||||
* @property-read string $comment
|
||||
* @property-read string|null $category
|
||||
* @property-read bool $forward
|
||||
* @property-read array $postUriIds
|
||||
* @property-read int $uid
|
||||
* @property-read \DateTime|null $created
|
||||
*/
|
||||
class Report extends \Friendica\BaseEntity
|
||||
{
|
||||
/** @var int|null */
|
||||
protected $id;
|
||||
/** @var int ID of the user making a moderation report*/
|
||||
protected $reporterId;
|
||||
/** @var int ID of the contact making a moderation report*/
|
||||
protected $uid;
|
||||
protected $reporterId;
|
||||
/** @var int ID of the contact being reported*/
|
||||
protected $cid;
|
||||
/** @var string Optional comment */
|
||||
|
@ -50,10 +50,11 @@ class Report extends \Friendica\BaseEntity
|
|||
protected $created;
|
||||
/** @var array Optional list of URI IDs of posts supporting the report*/
|
||||
protected $postUriIds;
|
||||
/** @var int ID of the user making a moderation report*/
|
||||
protected $uid;
|
||||
|
||||
public function __construct(int $uid = null, int $reporterId, int $cid, \DateTime $created, string $comment = '', string $category = null, bool $forward = false, array $postUriIds = [], int $id = null)
|
||||
public function __construct(int $reporterId, int $cid, \DateTime $created, string $comment = '', string $category = null, bool $forward = false, array $postUriIds = [], int $uid = null, int $id = null)
|
||||
{
|
||||
$this->uid = $uid;
|
||||
$this->reporterId = $reporterId;
|
||||
$this->cid = $cid;
|
||||
$this->created = $created;
|
||||
|
@ -61,6 +62,7 @@ class Report extends \Friendica\BaseEntity
|
|||
$this->category = $category;
|
||||
$this->forward = $forward;
|
||||
$this->postUriIds = $postUriIds;
|
||||
$this->uid = $uid;
|
||||
$this->id = $id;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue