Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | abstract class AbstractSubForm extends AbstractSubFormType implements SubFormInterface, SubFormProviderNameInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | public const FIELD_URL = 'url'; |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getProviderName(): string |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getTemplatePath(): string |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param \Symfony\Component\Form\FormBuilderInterface $builder |
||
43 | * @param array $options |
||
44 | * |
||
45 | * @return $this |
||
46 | */ |
||
47 | protected function addLink(FormBuilderInterface $builder, array $options) |
||
48 | { |
||
49 | $builder->add( |
||
50 | static::FIELD_URL, |
||
51 | 'hidden', |
||
52 | ); |
||
53 | |||
54 | return $this; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return \Symfony\Component\Validator\Constraint |
||
59 | */ |
||
60 | protected function createNotBlankConstraint(): Constraint |
||
63 | } |
||
64 | } |
||
65 |