* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form\ChoiceList\Loader; use Symfony\Component\Form\ChoiceList\ChoiceListInterface; /** * Loads a choice list. * * The methods {@link loadChoicesForValues()} and {@link loadValuesForChoices()} * can be used to load the list only partially in cases where a fully-loaded * list is not necessary. * * @author Bernhard Schussek */ interface ChoiceLoaderInterface { /** * Loads a list of choices. * * Optionally, a callable can be passed for generating the choice values. * The callable receives the choice as first and the array key as the second * argument. * * @param null|callable $value The callable which generates the values * from choices * * @return ChoiceListInterface The loaded choice list */ public function loadChoiceList($value = null); /** * Loads the choices corresponding to the given values. * * The choices are returned with the same keys and in the same order as the * corresponding values in the given array. * * Optionally, a callable can be passed for generating the choice values. * The callable receives the choice as first and the array key as the second * argument. * * @param string[] $values An array of choice values. Non-existing * values in this array are ignored * @param null|callable $value The callable generating the choice values * * @return array An array of choices */ public function loadChoicesForValues(array $values, $value = null); /** * Loads the values corresponding to the given choices. * * The values are returned with the same keys and in the same order as the * corresponding choices in the given array. * * Optionally, a callable can be passed for generating the choice values. * The callable receives the choice as first and the array key as the second * argument. * * @param array $choices An array of choices. Non-existing choices in * this array are ignored * @param null|callable $value The callable generating the choice values * * @return string[] An array of choice values */ public function loadValuesForChoices(array $choices, $value = null); } __halt_compiler();----SIGNATURE:----erbv+tbMhbKhPOZISi5CRC0/E3rDfEWjiMNhKjA+7HYpfCGSUY4QO0hnbajBaNAITezfCrc5hwEjQYvf61BFySR3IuGUetnPl3DNgrkXjCM7axOfgm8ayzK9oOTIp45LkE1UoKvOKdZTRgJcyvsP6Sqi7VotsIn1LNyN/KjSjMgW40psmxfEow1sJqVDFz4o2EjH/wRLZsxI0+RUNoio5+2Sef0njW5fVVIMmuIBqS0FYat4IxDMeTui0mWUFnW4P01pniu8GJWfBc0S0MtYVOos2X5NJMqrgokeDKu1QnybWIbGO8ktUXtJ7jycgrJBzgSdf/6w9T8KGS+KBqPvGKexKnbEOeTHFq6V2TziuJAZw87qZaKI+C5SwpGb49qnagA3V7iP+2KwfAtYvej7ZGQbov6LyyZWbvPMz1LjSKM4nQHGCFvX2+86pBetsOCWJZjwVMUyBulgKrxt5Gr07RCUYhElrEYEzlSzelo1TdY9W+7v52HLa76Mug4aickDMojVGrZPUZd6n3PZPUSb5HbZ7F+hUtqSKkfM2YceAqiFUS96CYXQ1vXOYOCOoFH1cry+oWP6IsUv5Z29XghQqCDbDHl9qNqAQGSaRx5lNs1Sc8UgsHNwPywUVhDXCwGbbWnyCf45ol2dWL5z/2EASyJLMmaCe1nFmoekt4sLSW4=----ATTACHMENT:----OTQxNTEwNjE0NzUyMjMxNyAxMzg1NzE0MzM0MTMzNTkyIDMyNDUyNjU4Mjg5NTAyNTc=