3 namespace Friendica\Navigation\Notifications\Entity;
6 use Friendica\BaseEntity;
11 * @property-read $verb
12 * @property-read $type
13 * @property-read $actorId
14 * @property-read $targetUriId
15 * @property-read $parentUriId
16 * @property-read $created
17 * @property-read $seen
19 class Notification extends BaseEntity
28 * @var int One of the \Friendica\Model\Post\UserNotification::TYPE_* constant values
29 * @see \Friendica\Model\Post\UserNotification
35 protected $targetUriId;
37 protected $parentUriId;
44 * Please do not use this constructor directly, instead use one of the method of the Notification factory.
50 * @param int|null $targetUriId
51 * @param int|null $parentUriId
52 * @param DateTime|null $created
55 * @see \Friendica\Navigation\Notifications\Factory\Notification
57 public function __construct(int $uid, string $verb, int $type, int $actorId, int $targetUriId = null, int $parentUriId = null, DateTime $created = null, bool $seen = false, int $id = null)
62 $this->actorId = $actorId;
63 $this->targetUriId = $targetUriId;
64 $this->parentUriId = $parentUriId ?: $targetUriId;
65 $this->created = $created;
70 public function setSeen()