Total Complexity | 4 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
16 | class LifecycleEventArgs extends EventArgs |
||
17 | { |
||
18 | /** |
||
19 | * @var ObjectManager |
||
20 | */ |
||
21 | private $objectManager; |
||
22 | |||
23 | /** |
||
24 | * @var object |
||
25 | */ |
||
26 | private $object; |
||
27 | |||
28 | /** |
||
29 | * Constructor. |
||
30 | * |
||
31 | * @param object $object |
||
32 | * @param ObjectManager $objectManager |
||
33 | */ |
||
34 | public function __construct($object, ObjectManager $objectManager) |
||
35 | { |
||
36 | $this->object = $object; |
||
37 | $this->objectManager = $objectManager; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * Retrieves the associated entity. |
||
42 | * |
||
43 | * @deprecated |
||
44 | * |
||
45 | * @return object |
||
46 | */ |
||
47 | public function getEntity() |
||
48 | { |
||
49 | return $this->object; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Retrieves the associated object. |
||
54 | * |
||
55 | * @return object |
||
56 | */ |
||
57 | public function getObject() |
||
58 | { |
||
59 | return $this->object; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * Retrieves the associated ObjectManager. |
||
64 | * |
||
65 | * @return ObjectManager |
||
66 | */ |
||
67 | public function getObjectManager() |
||
70 | } |
||
71 | } |
||
72 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths