PluginProbe
Simple Analytics / 1.67
Simple Analytics v1.67
1.109 1.108 1.107 1.106 1.73 1.74 1.75 1.76 1.77 1.78 1.79 1.8 1.80 1.81 1.82 1.83 1.84 1.85 1.86 1.87 1.88 1.89 1.9 1.90 1.91 All 98 releases
simpleanalytics / src / Settings / Blocks / Fields / Field.php

Field.php in Simple Analytics 1.67, at src/Settings/Blocks/Fields/Field.php

41 lines 700 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace SimpleAnalytics\Settings\Blocks\Fields;
4
5 use SimpleAnalytics\Settings\Block;
6
7 abstract class Field implements Block
8 {
9 /**
10 * @var string
11 */
12 protected $key;
13
14 /**
15 * @var string
16 */
17 protected $label;
18
19 public function __construct(string $key, string $label)
20 {
21 $this->key = $key;
22 $this->label = $label;
23 }
24
25 public function getKey(): string
26 {
27 return $this->key;
28 }
29
30 public function getLabel(): string
31 {
32 return $this->label;
33 }
34
35 abstract public function getValueSanitizer(): callable;
36
37 abstract public function getValueType(): string;
38
39 abstract public function render(): void;
40 }
41