Completed
Push — master ( fb3047...828efc )
by Rafael
02:41
created

Team::setManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 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 Manager
21
     */
22
    protected $manager;
23
24
    /**
25
     * @var \DateTime
26
     */
27
    protected $createdAt;
28
29
    /**
30
     * @var integer
31
     */
32
    protected $points;
33
34
    /**
35
     * @var array|Player[]
36
     */
37
    protected $players;
38
39
    /**
40
     * @var array|integer[]
41
     */
42
    protected $scores;
43
44
    /**
45
     * @return string
46
     */
47
    public function getName()
48
    {
49
        return $this->name;
50
    }
51
52
    /**
53
     * @param string $name
54
     *
55
     * @return $this
56
     */
57
    public function setName($name)
58
    {
59
        $this->name = $name;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return Manager
66
     */
67
    public function getManager()
68
    {
69
        return $this->manager;
70
    }
71
72
    /**
73
     * @param Manager $manager
74
     *
75
     * @return $this
76
     */
77
    public function setManager($manager)
78
    {
79
        $this->manager = $manager;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @return \DateTime
86
     */
87
    public function getCreatedAt()
88
    {
89
        return $this->createdAt;
90
    }
91
92
    /**
93
     * @param \DateTime $createdAt
94
     *
95
     * @return $this
96
     */
97
    public function setCreatedAt($createdAt)
98
    {
99
        $this->createdAt = $createdAt;
100
101
        return $this;
102
    }
103
104
    /**
105
     * @return int
106
     */
107
    public function getPoints()
108
    {
109
        return $this->points;
110
    }
111
112
    /**
113
     * @param int $points
114
     *
115
     * @return $this
116
     */
117
    public function setPoints($points)
118
    {
119
        $this->points = $points;
120
121
        return $this;
122
    }
123
124
    /**
125
     * @return array|Player[]
126
     */
127
    public function getPlayers()
128
    {
129
        return $this->players;
130
    }
131
132
    /**
133
     * @param array|Player[] $players
134
     *
135
     * @return $this
136
     */
137
    public function setPlayers($players)
138
    {
139
        $this->players = $players;
140
141
        return $this;
142
    }
143
144
    /**
145
     * @return array
146
     */
147
    public function getScores()
148
    {
149
        return $this->scores;
150
    }
151
152
    /**
153
     * @param array $scores
154
     *
155
     * @return $this
156
     */
157
    public function setScores($scores)
158
    {
159
        $this->scores = $scores;
160
161
        return $this;
162
    }
163
}