1 | <?php |
||
11 | class DoctrineOrmObjectManager implements ObjectManagerInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var ObjectManager |
||
15 | */ |
||
16 | private $objectManager; |
||
17 | |||
18 | /** |
||
19 | * DoctrineOrmObjectManager constructor. |
||
20 | * @param ObjectManager $objectManager |
||
21 | */ |
||
22 | public function __construct(ObjectManager $objectManager) |
||
26 | |||
27 | /** |
||
28 | * @param object $resource |
||
29 | * @return mixed |
||
30 | */ |
||
31 | public function getIdentifierName($resource) |
||
37 | |||
38 | /** |
||
39 | * @param object $resource |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getIdentifier($resource) |
||
57 | |||
58 | /** |
||
59 | * @param string $className |
||
60 | * @return \Doctrine\Common\Persistence\Mapping\ClassMetadata |
||
61 | */ |
||
62 | public function getClassMetadata($className) |
||
66 | |||
67 | /** |
||
68 | * @param string $className |
||
69 | * @param array $sorting |
||
70 | * @param array $filterValues |
||
71 | * @param array $filerOperators |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | public function findAllSorted($className, array $sorting, array $filterValues, array $filerOperators) |
||
108 | } |
||
109 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: