wrappedObject->status) { case 1: return 'greens'; case 2: return 'blues'; case 3: return 'yellows'; case 4: return 'reds'; } } /** * Convert the presenter instance to an array. * * @return string[] */ public function toArray() { return array_merge($this->wrappedObject->toArray(), [ 'created_at' => $this->created_at(), 'updated_at' => $this->updated_at(), 'status_name' => $this->wrappedObject->humanStatus, ]); } }