| Total Complexity | 9 |
| Total Lines | 65 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait HasSettingsFieldDataTrait |
||
| 10 | { |
||
| 11 | protected string $setting; |
||
| 12 | |||
| 13 | protected string $id; |
||
| 14 | |||
| 15 | protected string $title; |
||
| 16 | |||
| 17 | protected string $page; |
||
| 18 | |||
| 19 | protected string $section; |
||
| 20 | |||
| 21 | protected string $inputId; |
||
| 22 | |||
| 23 | protected array $args = []; |
||
| 24 | |||
| 25 | protected ?FormFieldInterface $input = null; |
||
| 26 | |||
| 27 | protected ?DataFormatterInterface $formatter = null; |
||
| 28 | |||
| 29 | protected ?ServerRequestPolicyInterface $policy = null; |
||
| 30 | |||
| 31 | public function getSetting(): string |
||
| 32 | { |
||
| 33 | return $this->setting; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getId(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getTitle(): string |
||
| 42 | { |
||
| 43 | return $this->title; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getPage(): string |
||
| 47 | { |
||
| 48 | return $this->page; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getSection(): string |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getArgs(): array |
||
| 59 | } |
||
| 60 | |||
| 61 | public function getInputId(): string |
||
| 62 | { |
||
| 63 | return $this->inputId; |
||
| 64 | } |
||
| 65 | |||
| 66 | public function getInput(): ?FormFieldInterface |
||
| 69 | } |
||
| 70 | |||
| 71 | public function getFormatter(): ?DataFormatterInterface |
||
| 74 | } |
||
| 75 | } |
||
| 76 |