1 | <?php |
||
10 | class DateFieldType implements FieldTypeInterface |
||
11 | { |
||
12 | use FieldTypeImplementationTrait; |
||
13 | |||
14 | /** |
||
15 | * @var |
||
16 | */ |
||
17 | private $value; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $columnType = "date"; |
||
23 | |||
24 | /** |
||
25 | * The field type name |
||
26 | * @var string |
||
27 | */ |
||
28 | public $name = "Fecha"; |
||
29 | |||
30 | /** |
||
31 | * The field slug for the instance |
||
32 | * @var |
||
33 | */ |
||
34 | public $fieldSlug; |
||
35 | |||
36 | /** |
||
37 | * The field Name for the instance |
||
38 | * @var |
||
39 | */ |
||
40 | public $fieldName; |
||
41 | |||
42 | /** |
||
43 | * The field description for the instance |
||
44 | * @var |
||
45 | */ |
||
46 | public $fieldDescription; |
||
47 | |||
48 | /** |
||
49 | * The field Options for the Instance |
||
50 | * @var |
||
51 | */ |
||
52 | public $fieldOptions; |
||
53 | |||
54 | /** |
||
55 | * Validation rules for the field type |
||
56 | * @var array |
||
57 | */ |
||
58 | public $validationRules = ['date']; |
||
59 | |||
60 | /** |
||
61 | * get the column type for this field type |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getColumnType() |
||
68 | |||
69 | /** |
||
70 | * Set a value for this field; |
||
71 | * @param $value |
||
72 | */ |
||
73 | public function setValue($value) |
||
77 | |||
78 | |||
79 | /** |
||
80 | * get the value for the field |
||
81 | * @return mixed |
||
82 | */ |
||
83 | public function getValue() |
||
87 | |||
88 | /** |
||
89 | * return the form view |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function present() |
||
100 | |||
101 | /** |
||
102 | * Que the form for the options of the field type |
||
103 | * @return mixed |
||
104 | */ |
||
105 | public function getOptionsForm() |
||
109 | |||
110 | /** |
||
111 | * Take the value and capitalize the first letter. |
||
112 | * @param $value |
||
113 | * @return string |
||
114 | */ |
||
115 | public function preSaveEvent($value) |
||
120 | |||
121 | /** |
||
122 | * @return mixed |
||
123 | */ |
||
124 | public function presentFront() |
||
129 | |||
130 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.