Issues (587)

src/Entity/MenuRole.php (6 issues)

1
<?php
2
3
namespace ControleOnline\Entity;
4
5
use Symfony\Component\Serializer\Attribute\Groups; 
0 ignored issues
show
The type Symfony\Component\Serializer\Attribute\Groups was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use ControleOnline\Listener\LogListener;
7
8
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
The type Doctrine\ORM\Mapping was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use ControleOnline\Entity\Role;
0 ignored issues
show
The type ControleOnline\Entity\Role was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
use ControleOnline\Entity\Menu;
11
12
/**
13
 * MenuRole
14
 */
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
0 ignored issues
show
The type Menu was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
33
     */
34
    #[ORM\JoinColumn(name: 'menu_id', referencedColumnName: 'id')]
35
    #[ORM\ManyToOne(targetEntity: \Menu::class)]
36
    private $menu;
37
38
    /**
39
     * @var \Role
0 ignored issues
show
The type Role was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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;
0 ignored issues
show
Documentation Bug introduced by
It seems like $menu of type ControleOnline\Entity\Menu is incompatible with the declared type Menu of property $menu.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
71
72
        return $this;
73
    }
74
75
    /**
76
     * Get the value of role
77
     */
78
    public function getRole(): Role
79
    {
80
        return $this->role;
81
    }
82
83
    /**
84
     * Set the value of role
85
     */
86
    public function setRole(Role $role): self
87
    {
88
        $this->role = $role;
89
90
        return $this;
91
    }
92
}
93