| 1 | <?php |
||
| 12 | class UserOptionSetField extends Broarm\EventTickets\UserField |
||
|
|
|||
| 13 | { |
||
| 14 | private static $has_many = array( |
||
| 15 | 'Options' => 'Broarm\EventTickets\UserFieldOption' |
||
| 16 | ); |
||
| 17 | |||
| 18 | public function getCMSFields() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $fieldName |
||
| 35 | * @param null $defaultValue |
||
| 36 | * |
||
| 37 | * @return OptionsetField |
||
| 38 | */ |
||
| 39 | public function createField($fieldName, $defaultValue = null) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get the value by set option |
||
| 46 | * |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function getValue() |
||
| 53 | } |
||
| 54 |
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.