1 | <?php |
||
17 | final class ImportService |
||
18 | { |
||
19 | /** |
||
20 | * @var EntityManagerInterface |
||
21 | */ |
||
22 | private $em; |
||
23 | |||
24 | /** |
||
25 | * @var SessionInterface |
||
26 | */ |
||
27 | private $session; |
||
28 | |||
29 | /** |
||
30 | * @var ContainerInterface |
||
31 | */ |
||
32 | private $container; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $doctrineWriterClass; |
||
38 | |||
39 | /** |
||
40 | * ImportService constructor. |
||
41 | * |
||
42 | * @param EntityManagerInterface $em |
||
43 | * @param $session |
||
44 | * @param ContainerInterface $container |
||
45 | * @param string $doctrineWriterClass |
||
46 | */ |
||
47 | public function __construct(EntityManagerInterface $em, $session, ContainerInterface $container, string $doctrineWriterClass) |
||
54 | |||
55 | /** |
||
56 | * @param UploadedFile $file |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getHeaders(UploadedFile $file) |
||
67 | |||
68 | private function fixHeadersEncoding($reader) |
||
80 | |||
81 | /** |
||
82 | * @param UploadedFile $file |
||
83 | * @param Form $form |
||
84 | * @param AdminInterface $admin |
||
85 | * |
||
86 | * @return mixed |
||
87 | */ |
||
88 | public function import(UploadedFile $file, Form $form, AdminInterface $admin) |
||
121 | |||
122 | /** |
||
123 | * Get session. |
||
124 | * |
||
125 | * @return |
||
126 | */ |
||
127 | public function getSession() |
||
131 | |||
132 | /** |
||
133 | * Set session. |
||
134 | * |
||
135 | * @return $this |
||
136 | */ |
||
137 | public function setSession($session) |
||
143 | |||
144 | /** |
||
145 | * @param UploadedFile $file |
||
146 | * |
||
147 | * @return CsvReader|ExcelReader |
||
148 | */ |
||
149 | private function getReader(UploadedFile $file) |
||
164 | } |
||
165 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.