- public function __construct(int $reporterId, int $cid, \DateTime $created, string $comment = '', string $category = null, string $rules = '', bool $forward = false, array $postUriIds = [], int $uid = null, int $id = null)
- {
- $this->reporterId = $reporterId;
- $this->cid = $cid;
- $this->created = $created;
- $this->comment = $comment;
- $this->category = $category;
- $this->rules = $rules;
- $this->forward = $forward;
- $this->postUriIds = $postUriIds;
- $this->uid = $uid;
- $this->id = $id;
+ public function __construct(
+ int $reporterCid,
+ int $cid,
+ int $gsid,
+ \DateTimeImmutable $created,
+ int $category,
+ int $reporterUid = null,
+ string $comment = '',
+ bool $forward = false,
+ Collection\Report\Posts $posts = null,
+ Collection\Report\Rules $rules = null,
+ string $publicRemarks = '',
+ string $privateRemarks = '',
+ \DateTimeImmutable $edited = null,
+ int $status = self::STATUS_OPEN,
+ int $resolution = null,
+ int $assignedUid = null,
+ int $lastEditorUid = null,
+ int $id = null
+ ) {
+ $this->reporterCid = $reporterCid;
+ $this->cid = $cid;
+ $this->gsid = $gsid;
+ $this->created = $created;
+ $this->category = $category;
+ $this->reporterUid = $reporterUid;
+ $this->comment = $comment;
+ $this->forward = $forward;
+ $this->posts = $posts ?? new Collection\Report\Posts();
+ $this->rules = $rules ?? new Collection\Report\Rules();
+ $this->publicRemarks = $publicRemarks;
+ $this->privateRemarks = $privateRemarks;
+ $this->edited = $edited;
+ $this->status = $status;
+ $this->resolution = $resolution;
+ $this->assignedUid = $assignedUid;
+ $this->lastEditorUid = $lastEditorUid;
+ $this->id = $id;