1 | <?php |
||
18 | class MediaType extends AbstractType implements MediaTypeInterface |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * |
||
23 | * @var MediaProviderInterface |
||
24 | */ |
||
25 | private $provider; |
||
26 | |||
27 | /** |
||
28 | * |
||
29 | * @var MediaInterface |
||
30 | */ |
||
31 | private $entityClass; |
||
32 | |||
33 | /** |
||
34 | * |
||
35 | * @var DataTransformerInterface |
||
36 | */ |
||
37 | private $transformer; |
||
38 | |||
39 | public function __construct($transformer, MediaProviderInterface $provider, $entityClass) |
||
45 | |||
46 | /** |
||
47 | * |
||
48 | * @param OptionsResolver $resolver |
||
49 | */ |
||
50 | public function configureOptions(OptionsResolver $resolver) |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @param FormBuilderInterface $builder |
||
62 | * |
||
63 | * @param array $options |
||
64 | */ |
||
65 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
91 | |||
92 | /** |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | public function getParent() |
||
100 | |||
101 | } |
||
102 |