| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class OnClearEventArgs extends EventArgs |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var \Doctrine\Common\Persistence\ObjectManager |
||
| 19 | */ |
||
| 20 | private $objectManager; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string|null |
||
| 24 | */ |
||
| 25 | private $entityClass; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Constructor. |
||
| 29 | * |
||
| 30 | * @param ObjectManager $objectManager The object manager. |
||
| 31 | * @param string|null $entityClass The optional entity class. |
||
| 32 | */ |
||
| 33 | public function __construct($objectManager, $entityClass = null) |
||
| 34 | { |
||
| 35 | $this->objectManager = $objectManager; |
||
| 36 | $this->entityClass = $entityClass; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Retrieves the associated ObjectManager. |
||
| 41 | * |
||
| 42 | * @return \Doctrine\Common\Persistence\ObjectManager |
||
| 43 | */ |
||
| 44 | public function getObjectManager() |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Returns the name of the entity class that is cleared, or null if all are cleared. |
||
| 51 | * |
||
| 52 | * @return string|null |
||
| 53 | */ |
||
| 54 | public function getEntityClass() |
||
| 55 | { |
||
| 56 | return $this->entityClass; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Returns whether this event clears all entities. |
||
| 61 | * |
||
| 62 | * @return bool |
||
| 63 | */ |
||
| 64 | public function clearsAllEntities() |
||
| 67 | } |
||
| 68 | } |
||
| 69 |
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