'user', * 'id' => 'citizen4' * ], * [ * 'type' => 'group', * 'id' => 'media' * ], * … * ] * */ public function getMentions(); /** * returns the verb of the comment * * @return string * @since 9.0.0 */ public function getVerb(); /** * sets the verb of the comment, e.g. 'comment' or 'like' * * @param string $verb * @return IComment * @since 9.0.0 */ public function setVerb($verb); /** * returns the actor type * * @return string * @since 9.0.0 */ public function getActorType(); /** * returns the actor ID * * @return string * @since 9.0.0 */ public function getActorId(); /** * sets (overwrites) the actor type and id * * @param string $actorType e.g. 'users' * @param string $actorId e.g. 'zombie234' * @return IComment * @since 9.0.0 */ public function setActor($actorType, $actorId); /** * returns the creation date of the comment. * * If not explicitly set, it shall default to the time of initialization. * * @return \DateTime * @since 9.0.0 */ public function getCreationDateTime(); /** * sets the creation date of the comment and returns itself * * @param \DateTime $dateTime * @return IComment * @since 9.0.0 */ public function setCreationDateTime(\DateTime $dateTime); /** * returns the date of the most recent child * * @return \DateTime * @since 9.0.0 */ public function getLatestChildDateTime(); /** * sets the date of the most recent child * * @param \DateTime|null $dateTime * @return IComment * @since 9.0.0 */ public function setLatestChildDateTime(?\DateTime $dateTime = null); /** * returns the object type the comment is attached to * * @return string * @since 9.0.0 */ public function getObjectType(); /** * returns the object id the comment is attached to * * @return string * @since 9.0.0 */ public function getObjectId(); /** * sets (overwrites) the object of the comment * * @param string $objectType e.g. 'files' * @param string $objectId e.g. '16435' * @return IComment * @since 9.0.0 */ public function setObject($objectType, $objectId); /** * returns the reference id of the comment * * @return string|null * @since 19.0.0 */ public function getReferenceId(): ?string; /** * sets (overwrites) the reference id of the comment * * @param string|null $referenceId e.g. sha256 hash sum * @return IComment * @since 19.0.0 */ public function setReferenceId(?string $referenceId): IComment; /** * Returns the metadata of the comment * * @return array|null * @since 29.0.0 */ public function getMetaData(): ?array; /** * Sets (overwrites) the metadata of the comment * Data as a json encoded array * * @param array|null $metaData * @return IComment * @throws \JsonException When the metadata can not be converted to a json encoded string * @since 29.0.0 */ public function setMetaData(?array $metaData): IComment; /** * Returns the reactions array if exists * * The keys is the emoji of reaction and the value is the total. * * @return array e.g. ["👍":1] * @since 24.0.0 */ public function getReactions(): array; /** * Set summarized array of reactions by reaction type * * The keys is the emoji of reaction and the value is the total. * * @param array|null $reactions e.g. ["👍":1] * @return IComment * @since 24.0.0 */ public function setReactions(?array $reactions): IComment; /** * Set message expire date * * @param \DateTime|null $dateTime * @return IComment * @since 25.0.0 */ public function setExpireDate(?\DateTime $dateTime): IComment; /** * Get message expire date * * @return ?\DateTime * @since 25.0.0 */ public function getExpireDate(): ?\DateTime; }