id; } /** * Menu name. */ #[ApiProperty(readable: true, writable: false)] public function getName(): ?string { return $this->name; } /** * Unique slug. */ #[ApiProperty(readable: true, writable: false)] public function getSlug(): ?string { return $this->slug; } /** * Menu URL. */ #[ApiProperty(readable: true, writable: false)] public function getUrl(): ?string { return $this->url; } /** * Menu image. */ #[ApiProperty(readable: true, writable: false)] public function getImage(): ?string { return $this->image; } /** * Menu banner. */ #[ApiProperty(readable: true, writable: false)] public function getBanner(): ?string { return $this->banner; } /** * Parent menu id. */ #[ApiProperty(readable: true, writable: false)] public function getParentId(): ?int { return $this->parent_id ? (int) $this->parent_id : null; } /** * Sort order. */ #[ApiProperty(readable: true, writable: false)] public function getSortOrder(): int { return (int) $this->sort_order; } /** * Status. */ #[ApiProperty(readable: true, writable: false)] public function getStatus(): bool { return (bool) $this->status; } /** * Children menu items (hierarchical). */ #[ApiProperty(readableLink: true, writable: false, description: 'Child menu items')] public function getChildren() { return $this->children; } }