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; } /** * Get the title * * @return string * * @since 1.0.0 */ public function getTitle() : string { return $this->title; } /** * Set the title * * @param string $title Title * * @return void * * @since 1.0.0 */ public function setTitle(string $title) : void { $this->title = $title; } /** * Get the content * * @return string * * @since 1.0.0 */ public function getContent() : string { return $this->content; } /** * Get the content * * @param string $content Content * * @return void * * @since 1.0.0 */ public function setContent(string $content) : void { $this->content = $content; } /** * Get the raw content * * @return string * * @since 1.0.0 */ public function getContentRaw() : string { return $this->contentRaw; } /** * Set the raw content * * @param string $contentRaw Content * * @return void * * @since 1.0.0 */ public function setContentRaw(string $contentRaw) : void { $this->contentRaw = $contentRaw; } /** * Get created by * * @return Account * * @since 1.0.0 */ public function getCreatedBy() : Account { return $this->createdBy; } /** * Set the creator * * @param Account $createdBy Creator * * @return void * * @since 1.0.0 */ public function setCreatedBy(Account $createdBy) : void { $this->createdBy = $createdBy; } /** * Get created at date time * * @return \DateTimeImmutable * * @since 1.0.0 */ public function getCreatedAt() : \DateTimeImmutable { return $this->createdAt; } /** * {@inheritdoc} */ public function jsonSerialize() : array { return []; } }