Model/Genders.php
public static function getChoices($long = false)
    {
        $offset = $long ? 1 : 0;
        $choices = [];
        foreach (static::getConfig() as $constant => $config) {
            $choices[$constant] = $config[$offset];
        }
        return $choices;
    }
public static function getChoices($long = false)
    {
        $offset = $long ? 1 : 0;
        $choices = [];
        foreach (static::getConfig() as $constant => $config) {
            $choices[$constant] = $config[$offset];
        }
        return $choices;
    }
public static function getChoices ( $ long = false ) { $ offset = $ long ? 1 : 0 ; $ choices = [ ] ; foreach ( static :: getConfig ( ) as $ constant => $ config ) { $ choices [ $ constant ] = $ config [ $ offset ] ; } return $ choices ; }
Returns the constant choices.

@param bool $long
@return array
Returns the constant choices .