color; } /** * Set color * * @param string $color Tag article color * * @return void * * @since 1.0.0 */ public function setColor(string $color) : void { $this->color = $color; } /** * Get id * * @return int * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * @return string * * @since 1.0.0 */ public function getTitle() : string { return $this->title; } /** * Set title * * @param string $title Tag article title * * @return void * * @since 1.0.0 */ public function setTitle(string $title) : void { $this->title = $title; } /** * {@inheritdoc} */ public function toArray() : array { return [ 'id' => $this->id, 'title' => $this->title, 'color' => $this->color, ]; } /** * {@inheritdoc} */ public function __toString() { return (string) \json_encode($this->toArray()); } /** * {@inheritdoc} */ public function jsonSerialize() { return $this->toArray(); } }