| Total Complexity | 5 |
| Total Lines | 76 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | #[ORM\Table(name: 'menu_role')] |
||
| 16 | #[ORM\Index(name: 'role_id', columns: ['role_id'])] |
||
| 17 | #[ORM\Index(name: 'IDX_9F267A24CCD7E912', columns: ['menu_id'])] |
||
| 18 | #[ORM\UniqueConstraint(name: 'menu_id', columns: ['menu_id', 'role_id'])] |
||
| 19 | #[ORM\Entity] |
||
| 20 | #[ORM\EntityListeners([LogListener::class])] |
||
| 21 | class MenuRole |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | #[ORM\Column(name: 'id', type: 'integer', nullable: false)] |
||
| 27 | #[ORM\Id] |
||
| 28 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
| 29 | private $id; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var \Menu |
||
| 33 | */ |
||
| 34 | #[ORM\JoinColumn(name: 'menu_id', referencedColumnName: 'id')] |
||
| 35 | #[ORM\ManyToOne(targetEntity: \Menu::class)] |
||
| 36 | private $menu; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var \Role |
||
| 40 | */ |
||
| 41 | #[ORM\JoinColumn(name: 'role_id', referencedColumnName: 'id')] |
||
| 42 | #[ORM\ManyToOne(targetEntity: \Role::class)] |
||
| 43 | private $role; |
||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | /** |
||
| 48 | * Get the value of id |
||
| 49 | */ |
||
| 50 | public function getId() |
||
| 51 | { |
||
| 52 | return $this->id; |
||
| 53 | } |
||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | /** |
||
| 58 | * Get the value of menu |
||
| 59 | */ |
||
| 60 | public function getMenu(): Menu |
||
| 61 | { |
||
| 62 | return $this->menu; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * Set the value of menu |
||
| 67 | */ |
||
| 68 | public function setMenu(Menu $menu): self |
||
| 69 | { |
||
| 70 | $this->menu = $menu; |
||
| 71 | |||
| 72 | return $this; |
||
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Get the value of role |
||
| 77 | */ |
||
| 78 | public function getRole(): Role |
||
| 81 | } |
||
| 82 | |||
| 83 | /** |
||
| 84 | * Set the value of role |
||
| 85 | */ |
||
| 86 | public function setRole(Role $role): self |
||
| 93 |
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