|
@@ -27,9 +27,9 @@ class FormMapper extends BaseGroupedMapper
|
|
|
protected $formBuilder;
|
|
|
|
|
|
/**
|
|
|
- * @param \Sonata\AdminBundle\Builder\FormContractorInterface $formContractor
|
|
|
- * @param \Symfony\Component\Form\FormBuilderInterface $formBuilder
|
|
|
- * @param \Sonata\AdminBundle\Admin\AdminInterface $admin
|
|
|
+ * @param FormContractorInterface $formContractor
|
|
|
+ * @param FormBuilderInterface $formBuilder
|
|
|
+ * @param AdminInterface $admin
|
|
|
*/
|
|
|
public function __construct(FormContractorInterface $formContractor, FormBuilderInterface $formBuilder, AdminInterface $admin)
|
|
|
{
|
|
@@ -38,9 +38,7 @@ class FormMapper extends BaseGroupedMapper
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param array $keys field names
|
|
|
- *
|
|
|
- * @return \Sonata\AdminBundle\Form\FormMapper
|
|
|
+ * {@inheritdoc}
|
|
|
*/
|
|
|
public function reorder(array $keys)
|
|
|
{
|
|
@@ -55,7 +53,7 @@ class FormMapper extends BaseGroupedMapper
|
|
|
* @param array $options
|
|
|
* @param array $fieldDescriptionOptions
|
|
|
*
|
|
|
- * @return \Sonata\AdminBundle\Form\FormMapper
|
|
|
+ * @return $this
|
|
|
*/
|
|
|
public function add($name, $type = null, array $options = array(), array $fieldDescriptionOptions = array())
|
|
|
{
|
|
@@ -143,9 +141,7 @@ class FormMapper extends BaseGroupedMapper
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param string $name
|
|
|
- *
|
|
|
- * @return FormBuilderInterface
|
|
|
+ * {@inheritdoc}
|
|
|
*/
|
|
|
public function get($name)
|
|
|
{
|
|
@@ -153,9 +149,7 @@ class FormMapper extends BaseGroupedMapper
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param string $key
|
|
|
- *
|
|
|
- * @return boolean
|
|
|
+ * {@inheritdoc}
|
|
|
*/
|
|
|
public function has($key)
|
|
|
{
|
|
@@ -163,9 +157,7 @@ class FormMapper extends BaseGroupedMapper
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param string $key
|
|
|
- *
|
|
|
- * @return \Sonata\AdminBundle\Form\FormMapper
|
|
|
+ * {@inheritdoc}
|
|
|
*/
|
|
|
public function remove($key)
|
|
|
{
|