entityLinks = array_map(fn (Entity $entity) => new EntityLinkMessageLine($entity, 24), $this->entities); } public function toHtml(): string { $entityHtmls = array_map(fn (EntityLinkMessageLine $line) => $line->toHtml(), $this->entityLinks); return implode(' > ', $entityHtmls); } public function __toString(): string { return implode(' > ', $this->entityLinks); } }