From 66ae994528a587870fcae915d614200d17687aa5 Mon Sep 17 00:00:00 2001 From: Brikou CARRE Date: Sat, 11 Jun 2011 11:59:28 +0200 Subject: [PATCH] [Form] added phpdoc (inherit) for types --- .../Form/Extension/Core/Type/BirthdayType.php | 9 +++++++++ .../Form/Extension/Core/Type/CheckboxType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/ChoiceType.php | 15 +++++++++++++++ .../Extension/Core/Type/CollectionType.php | 12 ++++++++++++ .../Form/Extension/Core/Type/CountryType.php | 9 +++++++++ .../Form/Extension/Core/Type/DateTimeType.php | 12 ++++++++++++ .../Form/Extension/Core/Type/DateType.php | 18 ++++++++++++++++++ .../Form/Extension/Core/Type/EmailType.php | 6 ++++++ .../Form/Extension/Core/Type/FieldType.php | 18 ++++++++++++++++++ .../Form/Extension/Core/Type/FileType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/FormType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/HiddenType.php | 9 +++++++++ .../Form/Extension/Core/Type/IntegerType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/LanguageType.php | 9 +++++++++ .../Form/Extension/Core/Type/LocaleType.php | 9 +++++++++ .../Form/Extension/Core/Type/MoneyType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/NumberType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/PasswordType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/PercentType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/RadioType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/RepeatedType.php | 9 +++++++++ .../Form/Extension/Core/Type/SearchType.php | 6 ++++++ .../Form/Extension/Core/Type/TextType.php | 6 ++++++ .../Form/Extension/Core/Type/TextareaType.php | 6 ++++++ .../Form/Extension/Core/Type/TimeType.php | 15 +++++++++++++++ .../Form/Extension/Core/Type/TimezoneType.php | 9 +++++++++ .../Form/Extension/Core/Type/UrlType.php | 12 ++++++++++++ 27 files changed, 324 insertions(+) diff --git a/src/Symfony/Component/Form/Extension/Core/Type/BirthdayType.php b/src/Symfony/Component/Form/Extension/Core/Type/BirthdayType.php index c71babb688..aea9a701e8 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/BirthdayType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/BirthdayType.php @@ -15,6 +15,9 @@ use Symfony\Component\Form\AbstractType; class BirthdayType extends AbstractType { + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -22,11 +25,17 @@ class BirthdayType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'date'; } + /** + * {@inheritdoc} + */ public function getName() { return 'birthday'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php b/src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php index b2c91545e3..d2c82d3ac4 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/CheckboxType.php @@ -19,6 +19,9 @@ use Symfony\Component\Form\FormView; class CheckboxType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder @@ -27,6 +30,9 @@ class CheckboxType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { $view @@ -35,6 +41,9 @@ class CheckboxType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -42,11 +51,17 @@ class CheckboxType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'checkbox'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php index e63a50580e..4c871aec09 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php @@ -26,6 +26,9 @@ use Symfony\Component\Form\Extension\Core\DataTransformer\ArrayToBooleanChoicesT class ChoiceType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { if (!$options['choices'] && !$options['choice_list']) { @@ -88,6 +91,9 @@ class ChoiceType extends AbstractType } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { $choices = $form->getAttribute('choice_list')->getChoices(); @@ -110,6 +116,9 @@ class ChoiceType extends AbstractType } } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { $multiple = isset($options['multiple']) && $options['multiple']; @@ -126,11 +135,17 @@ class ChoiceType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return $options['expanded'] ? 'form' : 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'choice'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php b/src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php index 128d5652a5..0b415cb059 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php @@ -19,6 +19,9 @@ use Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener; class CollectionType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { if ($options['allow_add'] && $options['prototype']) { @@ -43,6 +46,9 @@ class CollectionType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { $view @@ -51,6 +57,9 @@ class CollectionType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -62,6 +71,9 @@ class CollectionType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getName() { return 'collection'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/CountryType.php b/src/Symfony/Component/Form/Extension/Core/Type/CountryType.php index a65f07ea57..cea4ab2914 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/CountryType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/CountryType.php @@ -16,6 +16,9 @@ use Symfony\Component\Locale\Locale; class CountryType extends AbstractType { + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -23,11 +26,17 @@ class CountryType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'choice'; } + /** + * {@inheritdoc} + */ public function getName() { return 'country'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php b/src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php index d707e622f1..9422f1e340 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/DateTimeType.php @@ -22,6 +22,9 @@ use Symfony\Component\Form\Extension\Core\DataTransformer\ArrayToPartsTransforme class DateTimeType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { // Only pass a subset of the options to children @@ -87,6 +90,9 @@ class DateTimeType extends AbstractType } } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -112,6 +118,9 @@ class DateTimeType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getAllowedOptionValues(array $options) { return array( @@ -142,6 +151,9 @@ class DateTimeType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getName() { return 'datetime'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/DateType.php b/src/Symfony/Component/Form/Extension/Core/Type/DateType.php index 6023ff48ab..593090747e 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/DateType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/DateType.php @@ -25,6 +25,9 @@ use Symfony\Component\Form\ReversedTransformer; class DateType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $formatter = new \IntlDateFormatter( @@ -87,6 +90,9 @@ class DateType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildViewBottomUp(FormView $view, FormInterface $form) { $view->set('widget', $form->getAttribute('widget')); @@ -108,6 +114,9 @@ class DateType extends AbstractType } } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -125,6 +134,9 @@ class DateType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getAllowedOptionValues(array $options) { return array( @@ -148,11 +160,17 @@ class DateType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return $options['widget'] === 'single_text' ? 'field' : 'form'; } + /** + * {@inheritdoc} + */ public function getName() { return 'date'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/EmailType.php b/src/Symfony/Component/Form/Extension/Core/Type/EmailType.php index 8891dc5fb1..edc51983bf 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/EmailType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/EmailType.php @@ -15,11 +15,17 @@ use Symfony\Component\Form\AbstractType; class EmailType extends AbstractType { + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'email'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php b/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php index b8f46b67c5..d0935c6304 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/FieldType.php @@ -23,6 +23,9 @@ use Symfony\Component\EventDispatcher\EventDispatcher; class FieldType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { if (null === $options['property_path']) { @@ -55,6 +58,9 @@ class FieldType extends AbstractType } } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { $name = $form->getName(); @@ -93,6 +99,9 @@ class FieldType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { $defaultOptions = array( @@ -129,16 +138,25 @@ class FieldType extends AbstractType return $defaultOptions; } + /** + * {@inheritdoc} + */ public function createBuilder($name, FormFactoryInterface $factory, array $options) { return new FormBuilder($name, $factory, new EventDispatcher(), $options['data_class']); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return null; } + /** + * {@inheritdoc} + */ public function getName() { return 'field'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/FileType.php b/src/Symfony/Component/Form/Extension/Core/Type/FileType.php index fa7af5fb3f..43f07bf044 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/FileType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/FileType.php @@ -21,6 +21,9 @@ use Symfony\Component\Form\FormView; class FileType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { if ($options['type'] === 'string') { @@ -35,6 +38,9 @@ class FileType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildViewBottomUp(FormView $view, FormInterface $form) { $view @@ -45,6 +51,9 @@ class FileType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -52,6 +61,9 @@ class FileType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getAllowedOptionValues(array $options) { return array( @@ -62,6 +74,9 @@ class FileType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getName() { return 'file'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/FormType.php b/src/Symfony/Component/Form/Extension/Core/Type/FormType.php index d0d3b7a735..ca2c87ce0e 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/FormType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/FormType.php @@ -19,6 +19,9 @@ use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper; class FormType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder @@ -27,6 +30,9 @@ class FormType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildViewBottomUp(FormView $view, FormInterface $form) { $multipart = false; @@ -41,6 +47,9 @@ class FormType extends AbstractType $view->set('multipart', $multipart); } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { $defaultOptions = array( @@ -57,11 +66,17 @@ class FormType extends AbstractType return $defaultOptions; } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'form'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php b/src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php index d1e3bed812..8e6039eee0 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php @@ -15,6 +15,9 @@ use Symfony\Component\Form\AbstractType; class HiddenType extends AbstractType { + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -25,11 +28,17 @@ class HiddenType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'hidden'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/IntegerType.php b/src/Symfony/Component/Form/Extension/Core/Type/IntegerType.php index 2aee71cb0f..128a01456f 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/IntegerType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/IntegerType.php @@ -17,6 +17,9 @@ use Symfony\Component\Form\Extension\Core\DataTransformer\IntegerToLocalizedStri class IntegerType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder->appendClientTransformer( @@ -27,6 +30,9 @@ class IntegerType extends AbstractType )); } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -38,6 +44,9 @@ class IntegerType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getAllowedOptionValues(array $options) { return array( @@ -53,11 +62,17 @@ class IntegerType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'integer'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/LanguageType.php b/src/Symfony/Component/Form/Extension/Core/Type/LanguageType.php index b408cb0b27..46cacfd1bc 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/LanguageType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/LanguageType.php @@ -16,6 +16,9 @@ use Symfony\Component\Locale\Locale; class LanguageType extends AbstractType { + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -23,11 +26,17 @@ class LanguageType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'choice'; } + /** + * {@inheritdoc} + */ public function getName() { return 'language'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/LocaleType.php b/src/Symfony/Component/Form/Extension/Core/Type/LocaleType.php index 3584c56cf8..4f3fa08760 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/LocaleType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/LocaleType.php @@ -16,6 +16,9 @@ use Symfony\Component\Locale\Locale; class LocaleType extends AbstractType { + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -23,11 +26,17 @@ class LocaleType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'choice'; } + /** + * {@inheritdoc} + */ public function getName() { return 'locale'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php b/src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php index 78b4d5cf6c..f988879423 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/MoneyType.php @@ -21,6 +21,9 @@ class MoneyType extends AbstractType { private static $patterns = array(); + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder @@ -34,11 +37,17 @@ class MoneyType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { $view->set('money_pattern', self::getPattern($form->getAttribute('currency'))); } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -49,11 +58,17 @@ class MoneyType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'money'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/NumberType.php b/src/Symfony/Component/Form/Extension/Core/Type/NumberType.php index c207373534..00fec26766 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/NumberType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/NumberType.php @@ -17,6 +17,9 @@ use Symfony\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStrin class NumberType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder->appendClientTransformer(new NumberToLocalizedStringTransformer( @@ -26,6 +29,9 @@ class NumberType extends AbstractType )); } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -36,6 +42,9 @@ class NumberType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getAllowedOptionValues(array $options) { return array( @@ -51,11 +60,17 @@ class NumberType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'number'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/PasswordType.php b/src/Symfony/Component/Form/Extension/Core/Type/PasswordType.php index 754d46e8f2..7451080e1f 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/PasswordType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/PasswordType.php @@ -18,11 +18,17 @@ use Symfony\Component\Form\FormView; class PasswordType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder->setAttribute('always_empty', $options['always_empty']); } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { if ($form->getAttribute('always_empty') || !$form->isBound()) { @@ -30,6 +36,9 @@ class PasswordType extends AbstractType } } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -37,11 +46,17 @@ class PasswordType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'text'; } + /** + * {@inheritdoc} + */ public function getName() { return 'password'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/PercentType.php b/src/Symfony/Component/Form/Extension/Core/Type/PercentType.php index c357452910..f0804be4c2 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/PercentType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/PercentType.php @@ -17,11 +17,17 @@ use Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStri class PercentType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder->appendClientTransformer(new PercentToLocalizedStringTransformer($options['precision'], $options['type'])); } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -30,6 +36,9 @@ class PercentType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getAllowedOptionValues(array $options) { return array( @@ -40,11 +49,17 @@ class PercentType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'percent'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/RadioType.php b/src/Symfony/Component/Form/Extension/Core/Type/RadioType.php index 7b8549aa48..f3b98b9775 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/RadioType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/RadioType.php @@ -19,6 +19,9 @@ use Symfony\Component\Form\FormView; class RadioType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder @@ -27,6 +30,9 @@ class RadioType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { $view @@ -39,6 +45,9 @@ class RadioType extends AbstractType } } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -46,11 +55,17 @@ class RadioType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'radio'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/RepeatedType.php b/src/Symfony/Component/Form/Extension/Core/Type/RepeatedType.php index fc24327064..1d65953d68 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/RepeatedType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/RepeatedType.php @@ -17,6 +17,9 @@ use Symfony\Component\Form\Extension\Core\DataTransformer\ValueToDuplicatesTrans class RepeatedType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder @@ -29,6 +32,9 @@ class RepeatedType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -40,6 +46,9 @@ class RepeatedType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getName() { return 'repeated'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/SearchType.php b/src/Symfony/Component/Form/Extension/Core/Type/SearchType.php index dae9f093d7..2f5c417a65 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/SearchType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/SearchType.php @@ -15,11 +15,17 @@ use Symfony\Component\Form\AbstractType; class SearchType extends AbstractType { + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'text'; } + /** + * {@inheritdoc} + */ public function getName() { return 'search'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/TextType.php b/src/Symfony/Component/Form/Extension/Core/Type/TextType.php index a0e56facbc..bceb6af7e3 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/TextType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/TextType.php @@ -15,11 +15,17 @@ use Symfony\Component\Form\AbstractType; class TextType extends AbstractType { + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'text'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/TextareaType.php b/src/Symfony/Component/Form/Extension/Core/Type/TextareaType.php index ebc4ec6921..1e445694b3 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/TextareaType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/TextareaType.php @@ -15,11 +15,17 @@ use Symfony\Component\Form\AbstractType; class TextareaType extends AbstractType { + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'field'; } + /** + * {@inheritdoc} + */ public function getName() { return 'textarea'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php b/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php index 1a4433c266..c8e2a35c2e 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php @@ -23,6 +23,9 @@ use Symfony\Component\Form\FormView; class TimeType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $hourOptions = $minuteOptions = $secondOptions = array(); @@ -77,6 +80,9 @@ class TimeType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function buildView(FormView $view, FormInterface $form) { $view @@ -85,6 +91,9 @@ class TimeType extends AbstractType ; } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -102,6 +111,9 @@ class TimeType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getAllowedOptionValues(array $options) { return array( @@ -118,6 +130,9 @@ class TimeType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getName() { return 'time'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php b/src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php index 1d2008b43c..2b22523af7 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php @@ -16,6 +16,9 @@ use Symfony\Component\Form\Extension\Core\ChoiceList\TimezoneChoiceList; class TimezoneType extends AbstractType { + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -23,11 +26,17 @@ class TimezoneType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'choice'; } + /** + * {@inheritdoc} + */ public function getName() { return 'timezone'; diff --git a/src/Symfony/Component/Form/Extension/Core/Type/UrlType.php b/src/Symfony/Component/Form/Extension/Core/Type/UrlType.php index b8e47c6b18..246403d1bd 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/UrlType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/UrlType.php @@ -17,11 +17,17 @@ use Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener; class UrlType extends AbstractType { + /** + * {@inheritdoc} + */ public function buildForm(FormBuilder $builder, array $options) { $builder->addEventSubscriber(new FixUrlProtocolListener($options['default_protocol'])); } + /** + * {@inheritdoc} + */ public function getDefaultOptions(array $options) { return array( @@ -29,11 +35,17 @@ class UrlType extends AbstractType ); } + /** + * {@inheritdoc} + */ public function getParent(array $options) { return 'text'; } + /** + * {@inheritdoc} + */ public function getName() { return 'url';