military * but this could expand to include other types in the future. */ public readonly ?string $type; /** * @ignore * * @param array $record * @param list $locales */ public function __construct(array $record, array $locales = ['en']) { parent::__construct($record, $locales); $this->type = $record['type'] ?? null; } /** * @return array */ public function jsonSerialize(): array { $js = parent::jsonSerialize(); if ($this->type !== null) { $js['type'] = $this->type; } return $js; } }