createdBy = new NullAccount(); $this->createdAt = new \DateTimeImmutable(); } /** * Get id. * * @return int Model id * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * Reference id * * @param mixed $ref Reference * * @return void * * @since 1.0.0 */ public function setRef($ref) : void { $this->ref = $ref; } /** * Get the reference * * @return mixed * * @since 1.0.0 */ public function getRef() { return $this->ref; } /** * Set the status * * @param int $status Status * * @return void * * @since 1.0.0 */ public function setStatus(int $status) : void { $this->status = $status; } /** * Get the status * * @return int * * @since 1.0.0 */ public function getStatus() : int { return $this->status; } /** * Set the list this comment belongs to * * @param int|CommentList $list List * * @return void * * @since 1.0.0 */ public function setList($list) : void { $this->list = $list; } /** * Get the list this comment belongs to * * @return int|CommentList * * @since 1.0.0 */ public function getList() { return $this->list; } /** * {@inheritdoc} */ public function jsonSerialize() : array { return []; } /** * Get all media * * @return Media[] * * @since 1.0.0 */ public function getMedia() : array { return $this->media; } /** * Add media * * @param Media $media Media to add * * @return void * * @since 1.0.0 */ public function addMedia(Media $media) : void { $this->media[] = $media; } }