1 | <?php |
||
10 | abstract class AbstractOembedProvider extends AbstractProvider implements OembedProviderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $oembedData; |
||
16 | |||
17 | /** |
||
18 | * @param Media $media |
||
19 | * @param bool $providerReferenceUpdated |
||
20 | * @throws \Exception |
||
21 | */ |
||
22 | public function update(Media $media, $providerReferenceUpdated) |
||
47 | |||
48 | /** |
||
49 | * @param FormMapper $formMapper |
||
50 | */ |
||
51 | public function buildProviderCreateForm(FormMapper $formMapper) |
||
52 | { |
||
53 | $formMapper->add( |
||
54 | 'providerReference', |
||
55 | TextType::class, |
||
56 | ['label' => $this->getReferenceLabel()] |
||
57 | ); |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param FormMapper $formMapper |
||
62 | */ |
||
63 | public function buildProviderEditFormBefore(FormMapper $formMapper) |
||
64 | { |
||
65 | $formMapper->add( |
||
66 | 'providerReference', |
||
67 | TextType::class, |
||
68 | ['label' => $this->getReferenceLabel()] |
||
69 | ); |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * @param ErrorElement $errorElement |
||
74 | * @param Media $media |
||
75 | */ |
||
76 | public function validate(ErrorElement $errorElement, Media $media) |
||
85 | |||
86 | /** |
||
87 | * @param \MediaMonks\SonataMediaBundle\Entity\Media $media |
||
88 | */ |
||
89 | public function refreshImage(Media $media) |
||
100 | |||
101 | /** |
||
102 | * @param string $id |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getImageUrl($id) |
||
109 | |||
110 | /** |
||
111 | * @param $id |
||
112 | * @return mixed |
||
113 | * @throws \Exception |
||
114 | */ |
||
115 | protected function getOembedData($id) |
||
135 | |||
136 | /** |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getReferenceLabel() |
||
143 | |||
144 | /** |
||
145 | * @return bool |
||
146 | */ |
||
147 | public function supportsDownload() |
||
151 | |||
152 | /** |
||
153 | * @return bool |
||
154 | */ |
||
155 | public function supportsEmbed() |
||
159 | |||
160 | /** |
||
161 | * @return bool |
||
162 | */ |
||
163 | public function supportsImage() |
||
167 | } |
||
168 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..