createdBy = new NullAccount(); $this->createdAt = new \DateTimeImmutable('now'); $this->template = new NullTemplate(); $this->source = new NullCollection(); } /** * Get model id. * * @return int * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * Get the activity status * * @return int * * @since 1.0.0 */ public function getStatus() : int { return $this->status; } /** * Set the activity status * * @param int $status Report status * * @return void * * @since 1.0.0 */ public function setStatus(int $status) : void { $this->status = $status; } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'createdBy' => $this->createdBy, 'createdAt' => $this->createdAt, 'name' => $this->title, 'description' => $this->description, 'descriptionRaw' => $this->descriptionRaw, 'status' => $this->status, ]; } /** * {@inheritdoc} */ public function jsonSerialize() : mixed { return $this->toArray(); } }