Completed
Push — master ( d95fc8...954071 )
by Rafael
03:33
created

Team   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 127
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 10
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 127
rs 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 6 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 6 1
A getPoints() 0 4 1
A setPoints() 0 6 1
A getPlayers() 0 4 1
A setPlayers() 0 6 1
A getScores() 0 4 1
A setScores() 0 6 1
1
<?php
2
3
/**
4
 * LICENSE: This file is subject to the terms and conditions defined in
5
 * file 'LICENSE', which is part of this source code package.
6
 *
7
 * @copyright 2016 Copyright(c) - All rights reserved.
8
 */
9
10
namespace Rafrsr\LibArray2Object\Tests\Fixtures;
11
12
class Team
13
{
14
    /**
15
     * @var string
16
     */
17
    protected $name;
18
19
    /**
20
     * @var \DateTime
21
     */
22
    protected $createdAt;
23
24
    /**
25
     * @var integer
26
     */
27
    protected $points;
28
29
    /**
30
     * @var array|Player[]
31
     */
32
    protected $players;
33
34
    /**
35
     * @var array
36
     */
37
    protected $scores;
38
39
    /**
40
     * @return string
41
     */
42
    public function getName()
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @param string $name
49
     *
50
     * @return $this
51
     */
52
    public function setName($name)
53
    {
54
        $this->name = $name;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return \DateTime
61
     */
62
    public function getCreatedAt()
63
    {
64
        return $this->createdAt;
65
    }
66
67
    /**
68
     * @param \DateTime $createdAt
69
     *
70
     * @return $this
71
     */
72
    public function setCreatedAt($createdAt)
73
    {
74
        $this->createdAt = $createdAt;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return int
81
     */
82
    public function getPoints()
83
    {
84
        return $this->points;
85
    }
86
87
    /**
88
     * @param int $points
89
     *
90
     * @return $this
91
     */
92
    public function setPoints($points)
93
    {
94
        $this->points = $points;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @return array|Player[]
101
     */
102
    public function getPlayers()
103
    {
104
        return $this->players;
105
    }
106
107
    /**
108
     * @param array|Player[] $players
109
     *
110
     * @return $this
111
     */
112
    public function setPlayers($players)
113
    {
114
        $this->players = $players;
115
116
        return $this;
117
    }
118
119
    /**
120
     * @return array
121
     */
122
    public function getScores()
123
    {
124
        return $this->scores;
125
    }
126
127
    /**
128
     * @param array $scores
129
     *
130
     * @return $this
131
     */
132
    public function setScores($scores)
133
    {
134
        $this->scores = $scores;
135
136
        return $this;
137
    }
138
}