Files
core/hwe/sammo/DTO/MenuItem.php
T
Hide_D 6f5d7ff84b feat: Vue3로 새롭게 작성한 메인 페이지 (#229)
- v_front.php
- API 추가
  - General/GetFrontInfo
  - Global/GetGlobalMenu
- DTO 추가
  - MenuItem, MenuMulti, MenuSplit
- 글로벌 메뉴 출력 방식 변경
  - d_setting/GlobalMenu.php

Reviewed-on: https://storage.hided.net/gitea/devsam/core/pulls/229
2023-03-09 02:25:31 +09:00

26 lines
515 B
PHP

<?php
namespace sammo\DTO;
use LDTO\Attr\NullIsUndefined;
use LDTO\DTO;
class MenuItem extends DTO{
public readonly string $type;
public function __construct(
public readonly string $name,
public readonly string $url,
#[NullIsUndefined]
public ?string $icon = null,
#[NullIsUndefined]
public ?bool $newTab = false,
#[NullIsUndefined]
public ?string $condHighlightVar = null,
#[NullIsUndefined]
public ?string $condShowVar = null,
){
$this->type = 'item';
}
}