3 namespace BookStack\Exports\ZipExportModels;
5 use BookStack\Activity\Models\Tag;
7 class ZipExportTag extends ZipExportModel
10 public ?string $value = null;
11 public ?int $order = null;
13 public static function fromModel(Tag $model): self
15 $instance = new self();
16 $instance->name = $model->name;
17 $instance->value = $model->value;
18 $instance->order = $model->order;
23 public static function fromModelArray(array $tagArray): array
25 return array_values(array_map(self::fromModel(...), $tagArray));