Passed
Pull Request — master (#2161)
by Janko
25:16 queued 15:11
created

ShipRumpCategoryRoleCrew::getJob4Crew()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Orm\Entity;
6
7
use Doctrine\ORM\Mapping\Column;
8
use Doctrine\ORM\Mapping\Entity;
9
use Doctrine\ORM\Mapping\GeneratedValue;
10
use Doctrine\ORM\Mapping\Id;
11
use Doctrine\ORM\Mapping\Index;
12
use Doctrine\ORM\Mapping\JoinColumn;
13
use Doctrine\ORM\Mapping\ManyToOne;
14
use Doctrine\ORM\Mapping\Table;
15
use Override;
0 ignored issues
show
Bug introduced by
The type Override 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...
16
use Stu\Component\Spacecraft\SpacecraftRumpRoleEnum;
17
use Stu\Orm\Repository\ShipRumpCategoryRoleCrewRepository;
18
19
#[Table(name: 'stu_rumps_cat_role_crew')]
20
#[Index(name: 'ship_rump_category_role_idx', columns: ['rump_category_id', 'rump_role_id'])]
21
#[Entity(repositoryClass: ShipRumpCategoryRoleCrewRepository::class)]
22
class ShipRumpCategoryRoleCrew implements ShipRumpCategoryRoleCrewInterface
23
{
24
    #[Id]
25
    #[Column(type: 'integer')]
26
    #[GeneratedValue(strategy: 'IDENTITY')]
27
    private int $id;
28
29
    #[Column(type: 'integer')]
30
    private int $rump_category_id = 0;
31
32
    #[Column(type: 'enum', enumType: SpacecraftRumpRoleEnum::class)]
33
    private SpacecraftRumpRoleEnum $rump_role_id;
34
35
    #[Column(type: 'smallint')]
36
    private int $job_1_crew = 0;
37
38
    #[Column(type: 'smallint')]
39
    private int $job_2_crew = 0;
40
41
    #[Column(type: 'smallint')]
42
    private int $job_3_crew = 0;
43
44
    #[Column(type: 'smallint')]
45
    private int $job_4_crew = 0;
46
47
    #[Column(type: 'smallint')]
48
    private int $job_5_crew = 0;
49
50
    #[Column(type: 'smallint')]
51
    private int $job_6_crew = 0;
52
53
    #[Column(type: 'smallint')]
54
    private int $job_7_crew = 0;
55
56
    #[ManyToOne(targetEntity: 'ShipRumpRole')]
57
    #[JoinColumn(name: 'rump_role_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
58
    private ShipRumpRoleInterface $shiprumpRole;
59
60
    #[Override]
61
    public function getId(): int
62
    {
63
        return $this->id;
64
    }
65
66
    #[Override]
67
    public function getShipRumpCategoryId(): int
68
    {
69
        return $this->rump_category_id;
70
    }
71
72
    #[Override]
73
    public function getShipRumpRoleId(): SpacecraftRumpRoleEnum
74
    {
75
        return $this->rump_role_id;
76
    }
77
78 11
    #[Override]
79
    public function getJob1Crew(): int
80
    {
81 11
        return $this->job_1_crew;
82
    }
83
84
    #[Override]
85
    public function setJob1Crew(int $job1crew): ShipRumpCategoryRoleCrewInterface
86
    {
87
        $this->job_1_crew = $job1crew;
88
89
        return $this;
90
    }
91
92 11
    #[Override]
93
    public function getJob2Crew(): int
94
    {
95 11
        return $this->job_2_crew;
96
    }
97
98
    #[Override]
99
    public function setJob2Crew(int $job2crew): ShipRumpCategoryRoleCrewInterface
100
    {
101
        $this->job_2_crew = $job2crew;
102
103
        return $this;
104
    }
105
106 11
    #[Override]
107
    public function getJob3Crew(): int
108
    {
109 11
        return $this->job_3_crew;
110
    }
111
112
    #[Override]
113
    public function setJob3Crew(int $job3crew): ShipRumpCategoryRoleCrewInterface
114
    {
115
        $this->job_3_crew = $job3crew;
116
117
        return $this;
118
    }
119
120 11
    #[Override]
121
    public function getJob4Crew(): int
122
    {
123 11
        return $this->job_4_crew;
124
    }
125
126
    #[Override]
127
    public function setJob4Crew(int $job4crew): ShipRumpCategoryRoleCrewInterface
128
    {
129
        $this->job_4_crew = $job4crew;
130
131
        return $this;
132
    }
133
134 11
    #[Override]
135
    public function getJob5Crew(): int
136
    {
137 11
        return $this->job_5_crew;
138
    }
139
140
    #[Override]
141
    public function setJob5Crew(int $job5crew): ShipRumpCategoryRoleCrewInterface
142
    {
143
        $this->job_5_crew = $job5crew;
144
145
        return $this;
146
    }
147
148 11
    #[Override]
149
    public function getJob6Crew(): int
150
    {
151 11
        return $this->job_6_crew;
152
    }
153
154
    #[Override]
155
    public function setJob6Crew(int $job6crew): ShipRumpCategoryRoleCrewInterface
156
    {
157
        $this->job_6_crew = $job6crew;
158
159
        return $this;
160
    }
161
162 11
    #[Override]
163
    public function getJob7Crew(): int
164
    {
165 11
        return $this->job_7_crew;
166
    }
167
168
    #[Override]
169
    public function setJob7Crew(int $job7crew): ShipRumpCategoryRoleCrewInterface
170
    {
171
        $this->job_7_crew = $job7crew;
172
173
        return $this;
174
    }
175
176
    #[Override]
177
    public function getShiprumpRole(): ShipRumpRoleInterface
178
    {
179
        return $this->shiprumpRole;
180
    }
181
}
182