src/Enum.php
public static function choices()
    {
        self::bootClass();

        $result = [];

        foreach (static::values() as $value) {
            $result[$value] = static::getLabel($value);
        }

        return $result;
    }
public static function choices()
    {
        self::bootClass();

        $result = [];

        foreach (static::values() as $value) {
            $result[$value] = static::getLabel($value);
        }

        return $result;
    }
public static function choices ( ) { self :: bootClass ( ) ; $ result = [ ] ; foreach ( static :: values ( ) as $ value ) { $ result [ $ value ] = static :: getLabel ( $ value ) ; } return $ result ; }
Returns an array of value => label pairs.
Ready to pass to dropdowns.

Example:
```
const FOO = 'foo';
const BAR = 'bar'

protected static $labels = [
self::FOO => 'I am foo',
self::BAR => 'I am bar'
];
```
self::choices returns:
```
[
'foo' => 'I am foo',
'bar' => 'I am bar'
]
```

@return array
Returns an array of value = > label pairs . Ready to pass to dropdowns .