Passed
Push — master ( 3f8050...70788f )
by Luiz Kim
05:05 queued 02:57
created

PeopleRole::getPeople()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace ControleOnline\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
0 ignored issues
show
Bug introduced by
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...
6
7
/**
8
 * PeopleRole
9
 *
10
 * @ORM\Table(name="people_role", uniqueConstraints={@ORM\UniqueConstraint(name="company_id", columns={"company_id", "people_id", "role_id"})}, indexes={@ORM\Index(name="people_id", columns={"people_id"}), @ORM\Index(name="role_id", columns={"role_id"}), @ORM\Index(name="IDX_55A046DA979B1AD6", columns={"company_id"})})
11
 * @ORM\Entity
12
 *  @ORM\EntityListeners({App\Listener\LogListener::class})
13
 */
14
class PeopleRole
15
{
16
    /**
17
     * @var int
18
     *
19
     * @ORM\Column(name="id", type="integer", nullable=false)
20
     * @ORM\Id
21
     * @ORM\GeneratedValue(strategy="IDENTITY")
22
     */
23
    private $id;
24
25
    /**
26
     * @var \People
0 ignored issues
show
Bug introduced by
The type People 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...
27
     *
28
     * @ORM\ManyToOne(targetEntity="People")
29
     * @ORM\JoinColumns({
30
     *   @ORM\JoinColumn(name="company_id", referencedColumnName="id")
31
     * })
32
     */
33
    private $company;
34
35
    /**
36
     * @var \People
37
     *
38
     * @ORM\ManyToOne(targetEntity="People")
39
     * @ORM\JoinColumns({
40
     *   @ORM\JoinColumn(name="people_id", referencedColumnName="id")
41
     * })
42
     */
43
    private $people;
44
45
    /**
46
     * @var \Role
0 ignored issues
show
Bug introduced by
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...
47
     *
48
     * @ORM\ManyToOne(targetEntity="Role")
49
     * @ORM\JoinColumns({
50
     *   @ORM\JoinColumn(name="role_id", referencedColumnName="id")
51
     * })
52
     */
53
    private $role;
54
55
56
57
    /**
58
     * Get the value of id
59
     */
60
    public function getId(): int
61
    {
62
        return $this->id;
63
    }
64
65
66
67
    /**
68
     * Get the value of company
69
     */
70
    public function getCompany(): \ControleOnline\Entity\People
71
    {
72
        return $this->company;
73
    }
74
75
    /**
76
     * Set the value of company
77
     */
78
    public function setCompany(\ControleOnline\Entity\People $company): self
79
    {
80
        $this->company = $company;
81
82
        return $this;
83
    }
84
85
    /**
86
     * Get the value of people
87
     */
88
    public function getPeople(): \ControleOnline\Entity\People
89
    {
90
        return $this->people;
91
    }
92
93
    /**
94
     * Set the value of people
95
     */
96
    public function setPeople(\ControleOnline\Entity\People $people): self
97
    {
98
        $this->people = $people;
99
100
        return $this;
101
    }
102
103
    /**
104
     * Get the value of role
105
     */
106
    public function getRole(): \ControleOnline\Entity\Role
0 ignored issues
show
Bug introduced by
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...
107
    {
108
        return $this->role;
109
    }
110
111
    /**
112
     * Set the value of role
113
     */
114
    public function setRole(\ControleOnline\Entity\Role $role): self
115
    {
116
        $this->role = $role;
117
118
        return $this;
119
    }
120
}
121