src/Charcoal/Property/SelectablePropertyTrait.php
protected function parseChoices(array $choices)
    {
        $parsed = [];
        foreach ($choices as $choiceIdent => $choice) {
            $choice = $this->parseChoice($choice, (string)$choiceIdent);
            $choiceIdent = $choice['value'];

            $parsed[$choiceIdent] = $choice;
        }

        return $parsed;
    }
protected function parseChoices(array $choices)
    {
        $parsed = [];
        foreach ($choices as $choiceIdent => $choice) {
            $choice = $this->parseChoice($choice, (string)$choiceIdent);
            $choiceIdent = $choice['value'];

            $parsed[$choiceIdent] = $choice;
        }

        return $parsed;
    }
protected function parseChoices ( array $ choices ) { $ parsed = [ ] ; foreach ( $ choices as $ choiceIdent => $ choice ) { $ choice = $ this -> parseChoice ( $ choice , ( string ) $ choiceIdent ) ; $ choiceIdent = $ choice [ 'value' ] ; $ parsed [ $ choiceIdent ] = $ choice ; } return $ parsed ; }
Parse the given values into choice structures.

@param  array $choices One or more values to format.
@return array Returns a collection of choice structures.
Parse the given values into choice structures .