. * */ namespace Friendica\Moderation\Entity; /** * @property-read int $id * @property-read int $uid * @property-read int $cid * @property-read string $comment * @property-read bool $forward * @property-read array $postUriIds * @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; /** @var int ID of the contact being reported*/ protected $cid; /** @var string Optional comment */ protected $comment; /** @var string Optional category */ protected $category; /** @var bool Whether this report should be forwarded to the remote server */ protected $forward; /** @var \DateTime|null When the report was created */ protected $created; /** @var array Optional list of URI IDs of posts supporting the report*/ protected $postUriIds; 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) { $this->uid = $uid; $this->reporterId = $reporterId; $this->cid = $cid; $this->created = $created; $this->comment = $comment; $this->category = $category; $this->forward = $forward; $this->postUriIds = $postUriIds; $this->id = $id; } }