1 | <?php |
||
10 | class DoctrineStorage implements StorageInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var EntityManagerInterface |
||
15 | */ |
||
16 | private $entityManager; |
||
17 | |||
18 | /** |
||
19 | * @var Query |
||
20 | */ |
||
21 | private $query; |
||
22 | |||
23 | private $entityName; |
||
24 | |||
25 | 1 | public function __construct(EntityManagerInterface $entityManager, $entityName=null, Query $query=null) |
|
39 | |||
40 | public function getQuery() |
||
44 | |||
45 | public function setQuery($query) |
||
49 | |||
50 | 1 | public function getEntityName() |
|
54 | |||
55 | public function setEntityName($entityName) |
||
59 | |||
60 | /** |
||
61 | * (non-PHPdoc) @see \Mathielen\ImportEngine\Storage\StorageInterface::writer() |
||
62 | */ |
||
63 | 1 | public function writer() |
|
74 | |||
75 | /** |
||
76 | * (non-PHPdoc) @see \Mathielen\ImportEngine\Storage\StorageInterface::info() |
||
77 | */ |
||
78 | 1 | public function info() |
|
88 | |||
89 | /** |
||
90 | * (non-PHPdoc) @see \Mathielen\ImportEngine\Storage\StorageInterface::reader() |
||
91 | */ |
||
92 | 1 | public function reader() |
|
96 | |||
97 | /** |
||
98 | * (non-PHPdoc) @see \Mathielen\ImportEngine\Storage\StorageInterface::getFields() |
||
99 | */ |
||
100 | public function getFields() |
||
104 | } |
||
105 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.