1 | <?php |
||
12 | class UserNumericField extends Broarm\EventTickets\UserField |
||
|
|||
13 | { |
||
14 | /** |
||
15 | * @var NumericField |
||
16 | */ |
||
17 | protected $fieldType = 'NumericField'; |
||
18 | |||
19 | private static $db = array( |
||
20 | 'Min' => 'Int', |
||
21 | 'Max' => 'Int' |
||
22 | ); |
||
23 | |||
24 | public function getCMSFields() |
||
34 | |||
35 | /** |
||
36 | * Create a default text field |
||
37 | * |
||
38 | * @param string $fieldName |
||
39 | * @param null $defaultValue |
||
40 | * |
||
41 | * @return NumericField|FormField |
||
42 | */ |
||
43 | public function createField($fieldName, $defaultValue = null) |
||
57 | } |
||
58 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.