| 1 | <?php |
||
| 9 | class UserCheckboxField extends Broarm\EventTickets\UserField |
||
|
|
|||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Create a default text field |
||
| 13 | * |
||
| 14 | * @param string $fieldName |
||
| 15 | * @param null $defaultValue |
||
| 16 | * |
||
| 17 | * @return CheckboxField |
||
| 18 | */ |
||
| 19 | public function createField($fieldName, $defaultValue = null) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the value in a readable manner |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | public function getValue() |
||
| 35 | } |
||
| 36 |
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.