Completed
Push — master ( 013cb5...236a20 )
by Rafael
02:35
created

Player::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
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
/**
13
 * Class Player
14
 */
15
class Player
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $name;
21
22
    /**
23
     * @var integer
24
     */
25
    protected $number;
26
27
    /**
28
     * @var float
29
     */
30
    protected $height;
31
32
    /**
33
     * @var boolean
34
     */
35
    protected $regular;
36
37
    /**
38
     * Player constructor.
39
     *
40
     * @param string $name
41
     * @param int    $number
42
     */
43
    public function __construct($name = null, $number = null)
44
    {
45
        $this->name = $name;
46
        $this->number = $number;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getName()
53
    {
54
        return $this->name;
55
    }
56
57
    /**
58
     * @param string $name
59
     *
60
     * @return $this
61
     */
62
    public function setName($name)
63
    {
64
        $this->name = $name;
65
66
        return $this;
67
    }
68
69
    /**
70
     * @return int
71
     */
72
    public function getNumber()
73
    {
74
        return $this->number;
75
    }
76
77
    /**
78
     * @param int $number
79
     *
80
     * @return $this
81
     */
82
    public function setNumber($number)
83
    {
84
        $this->number = $number;
85
86
        return $this;
87
    }
88
89
    /**
90
     * @return float
91
     */
92
    public function getHeight()
93
    {
94
        return $this->height;
95
    }
96
97
    /**
98
     * @param float $height
99
     *
100
     * @return $this
101
     */
102
    public function setHeight($height)
103
    {
104
        $this->height = $height;
105
106
        return $this;
107
    }
108
109
    /**
110
     * @return boolean
111
     */
112
    public function isRegular()
113
    {
114
        return $this->regular;
115
    }
116
117
    /**
118
     * @param boolean $regular
119
     *
120
     * @return $this
121
     */
122
    public function setRegular($regular)
123
    {
124
        $this->regular = $regular;
125
126
        return $this;
127
    }
128
}