| Total Complexity | 9 |
| Total Lines | 69 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | trait HasSystemModelTypeDataTrait |
||
| 6 | { |
||
| 7 | protected string $name; |
||
| 8 | |||
| 9 | protected string $singularLabel; |
||
| 10 | |||
| 11 | protected string $pluralLabel; |
||
| 12 | |||
| 13 | protected string $description; |
||
| 14 | |||
| 15 | protected array $capabilities; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool|array |
||
| 19 | */ |
||
| 20 | protected $rewrite; |
||
| 21 | |||
| 22 | protected array $props; |
||
| 23 | |||
| 24 | protected array $labels; |
||
| 25 | |||
| 26 | protected array $options; |
||
| 27 | |||
| 28 | public function getName(): string |
||
| 29 | { |
||
| 30 | return $this->name; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getPluralLabel(): string |
||
| 34 | { |
||
| 35 | return $this->pluralLabel; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getSingularLabel(): string |
||
| 39 | { |
||
| 40 | return $this->singularLabel; |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getDescription(): string |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getCapabilities(): array |
||
| 49 | { |
||
| 50 | return $this->capabilities; |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return bool|string |
||
| 55 | */ |
||
| 56 | public function getRewrite() |
||
| 57 | { |
||
| 58 | return $this->rewrite; |
||
|
|
|||
| 59 | } |
||
| 60 | |||
| 61 | public function getProps(): array |
||
| 64 | } |
||
| 65 | |||
| 66 | public function getOptions(): array |
||
| 69 | } |
||
| 70 | |||
| 71 | public function getLabels() |
||
| 74 | } |
||
| 75 | } |
||
| 76 |