* * 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:----oxzlm9Z1WFxl8eT9pHnnuhBYXrHrGIYWVPt24IG4v3J+gvbaPzsp+M9xpamEOD1ykk6VZE/2ZGmPOWP8t8uXQxWgJBHF5sIlYZgbOHKdmofAmKwXN3bWZPuK5Qq9Aym/fVRHQytcuIbGwcHlKMjVpf+VPH0+blbZI0pQIoYQqThd7PPzXkW41AMQ1edVSyVH/f78W8ufisDEu3w+RYYP52NRkyrEEprQzVKtUc7FAbsAB0RI8ka9bpnMQHgb/Pw88/33CD0B/GnzbUFkFakId+NApT96H0edi1YodDU/CC8/Xyr3mAy9npaunypdgv4tmTZUKVFKMnSIQXCwbcvkhfe0hEfF4etc58dnWJdyxl4DQ8LIsfOljn9ugO691UQsjs5zoIiaBwEqcAGtncZWQ+KCHrumKD0PZevfxqebeo7/f7Wiwime1e1yy8bEIki4wm2+16KD5e2fdIP5IGEsdLuC8si6KZroAm/rcX6Di3qkUGpnq9vbFbyOx6TATZ0iwGfhg7n+dzwDf4/8sIrxwH5kERq0ksSJJteCCJNziMVBFuFVkyRjRkXUnqKvCv24Uo/E4gOzs3k2wh9Y3+iHpMS9LDlKafbkNyp5C/rM58DDbuRa7KzCfyv0+qw2GtJjPvImdHkKmN/tTrDH8P8yICEI6sOjz9Jcy4J3Jw1cCCg=----ATTACHMENT:----ODA0MTgzODA5NjQ4NDQwOSA3NjE0MDY0MzAzNDg5ODgxIDUyMDg4NTUxMDQ4MDYzOA==