Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Input extends \Riclep\Storyblok\Block |
||
10 | { |
||
11 | use HasNames, InFieldset, ToJson; |
||
12 | |||
13 | protected $key; |
||
14 | |||
15 | /** |
||
16 | * @var string[] All the Validators for this Input |
||
17 | */ |
||
18 | protected $_casts = ['validators' => Validators::class]; |
||
19 | |||
20 | public function loopKey($key) { |
||
21 | $this->key = $key; |
||
22 | |||
23 | return $this; |
||
24 | } |
||
25 | |||
26 | |||
27 | /** |
||
28 | * All the Validation rules for this Input |
||
29 | * |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function validationRules() { |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * All the error messages for this Input |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function errorMessages() { |
||
43 | } |
||
44 | |||
45 | |||
46 | /** |
||
47 | * Set’s the default Input size when not defined |
||
48 | * |
||
49 | * @return mixed|string |
||
50 | */ |
||
51 | public function getSizeAttribute() { |
||
57 | } |
||
58 | } |