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) |
||
75 | |||
76 | /** |
||
77 | * @param UploadedFile $file |
||
78 | * @param Form $form |
||
79 | * @param AdminInterface $admin |
||
80 | * |
||
81 | * @return mixed |
||
82 | */ |
||
83 | public function import(UploadedFile $file, Form $form, AdminInterface $admin) |
||
125 | |||
126 | /** |
||
127 | * Get session. |
||
128 | * |
||
129 | * @return |
||
130 | */ |
||
131 | public function getSession() |
||
135 | |||
136 | /** |
||
137 | * Set session. |
||
138 | * |
||
139 | * @return $this |
||
140 | */ |
||
141 | public function setSession($session) |
||
147 | |||
148 | /** |
||
149 | * @param UploadedFile $file |
||
150 | * |
||
151 | * @return CsvReader|ExcelReader |
||
152 | */ |
||
153 | private function getReader(UploadedFile $file) |
||
168 | } |
||
169 |
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.