title, slug: $row->slug, currentVersionId: null !== $row->current_version_id ? (int) $row->current_version_id : null, id: (int) $row->id, ); } /** * Returns a plain array representation of the policy. * * @return array */ public function toArray(): array { return [ 'id' => $this->id, 'title' => $this->title, 'slug' => $this->slug, 'current_version_id' => $this->currentVersionId, ]; } }