Range

class Range extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. INVALID_CHARACTERS_ERROR TOO_HIGH_ERROR TOO_LOW_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Co

RadioType::getBlockPrefix()

string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block name

RadioType

class RadioType extends AbstractType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. from AbstractType buildView(FormView $view, FormInterface $form, array $options) Builds the form view. from AbstractType finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. from AbstractType configureOptions(OptionsResolver $resolver) Configures the options for this type. from AbstractType string getBlockPrefix() Returns

RadioListMapper::mapDataToForms()

mapDataToForms($choice, $radios) Maps properties of some data to a list of forms. Parameters $choice $radios Exceptions UnexpectedTypeException if the type of the data parameter is not supported.

QuestionHelper::getName()

string getName() Returns the canonical name of this helper. Return Value string The canonical name

QuestionHelper::setInputStream()

setInputStream(resource $stream) Sets the input stream to read from when interacting with the user. This is mainly useful for testing purpose. Parameters resource $stream The input stream Exceptions InvalidArgumentException In case the stream is not a resource

QuestionHelper::ask()

string ask(InputInterface $input, OutputInterface $output, Question $question) Asks a question to the user. Parameters InputInterface $input An InputInterface instance OutputInterface $output An OutputInterface instance Question $question The question to ask Return Value string The user answer Exceptions RuntimeException If there is no data to read in the input stream

RadioListMapper::mapFormsToData()

mapFormsToData($radios, $choice) Maps the data of a list of forms into the properties of some data. Parameters $radios $choice Exceptions UnexpectedTypeException if the type of the data parameter is not supported.

RadioListMapper

class RadioListMapper implements DataMapperInterface Maps choices to/from radio forms. A {@link ChoiceListInterface} implementation is used to find the corresponding string values for the choices. The radio form whose "value" option corresponds to the selected value is marked as selected. Methods mapDataToForms($choice, $radios) Maps properties of some data to a list of forms. mapFormsToData($radios, $choice) Maps the data of a list of forms into the properties of some data. Det

QuestionHelper::getInputStream()

resource getInputStream() Returns the helper's input stream. Return Value resource