Completed
Push — master ( 6553d9...597614 )
by Mauro
01:35
created

Sheet   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 124
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 124
ccs 25
cts 25
cp 1
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getCategory() 0 4 1
A setCategory() 0 5 1
A setMatchSheet() 0 5 1
A getSport() 0 4 1
A setSport() 0 5 1
A getTournament() 0 4 1
A setTournament() 0 5 1
A setTournamentAltName() 0 5 1
A getMatchSheet() 0 4 1
A getTournamentAltName() 0 4 1
1
<?php
2
3
namespace MauroMoreno\DataFactory\Entity;
4
5
/**
6
 * Class Sheet
7
 *
8
 * @package MauroMoreno\DataFactory\Entity
9
 */
10
class Sheet
11
{
12
13
    /**
14
     * @var Category
15
     */
16
    private $category;
17
18
    /**
19
     * @var MatchSheet
20
     */
21
    private $match_sheet;
22
23
    /**
24
     * @var Sport
25
     */
26
    private $sport;
27
28
    /**
29
     * @var Tournament
30
     */
31
    private $tournament;
32
33
    /**
34
     * @var Tournament
35
     */
36
    private $tournament_alt_name;
37
38
    /**
39
     * @return Category
40
     */
41 1
    public function getCategory(): Category
42
    {
43 1
        return $this->category;
44
    }
45
46
    /**
47
     * @param Category $category
48
     *
49
     * @return Sheet
50
     */
51 3
    public function setCategory(Category $category): Sheet
52
    {
53 3
        $this->category = $category;
54 3
        return $this;
55
    }
56
57
    /**
58
     * @return MatchSheet
59
     */
60 1
    public function getMatchSheet(): MatchSheet
61
    {
62 1
        return $this->match_sheet;
63
    }
64
65
    /**
66
     * @param MatchSheet $match_sheet
67
     *
68
     * @return Sheet
69
     */
70 3
    public function setMatchSheet(MatchSheet $match_sheet): Sheet
71
    {
72 3
        $this->match_sheet = $match_sheet;
73 3
        return $this;
74
    }
75
76
    /**
77
     * @return Sport
78
     */
79 1
    public function getSport(): Sport
80
    {
81 1
        return $this->sport;
82
    }
83
84
    /**
85
     * @param Sport $sport
86
     *
87
     * @return Sheet
88
     */
89 3
    public function setSport(Sport $sport): Sheet
90
    {
91 3
        $this->sport = $sport;
92 3
        return $this;
93
    }
94
95
    /**
96
     * @return Tournament
97
     */
98 1
    public function getTournament(): Tournament
99
    {
100 1
        return $this->tournament;
101
    }
102
103
    /**
104
     * @param Tournament $tournament
105
     *
106
     * @return Sheet
107
     */
108 3
    public function setTournament(Tournament $tournament): Sheet
109
    {
110 3
        $this->tournament = $tournament;
111 3
        return $this;
112
    }
113
114
    /**
115
     * @return Tournament
116
     */
117 1
    public function getTournamentAltName(): Tournament
118
    {
119 1
        return $this->tournament_alt_name;
120
    }
121
122
    /**
123
     * @param Tournament $tournament
124
     *
125
     * @return Sheet
126
     */
127 3
    public function setTournamentAltName(Tournament $tournament): Sheet
128
    {
129 3
        $this->tournament_alt_name = $tournament;
130 3
        return $this;
131
    }
132
133
}
134