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

Player::getNumber()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
     * @return string
39
     */
40
    public function getName()
41
    {
42
        return $this->name;
43
    }
44
45
    /**
46
     * @param string $name
47
     *
48
     * @return $this
49
     */
50
    public function setName($name)
51
    {
52
        $this->name = $name;
53
54
        return $this;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getNumber()
61
    {
62
        return $this->number;
63
    }
64
65
    /**
66
     * @param int $number
67
     *
68
     * @return $this
69
     */
70
    public function setNumber($number)
71
    {
72
        $this->number = $number;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return float
79
     */
80
    public function getHeight()
81
    {
82
        return $this->height;
83
    }
84
85
    /**
86
     * @param float $height
87
     *
88
     * @return $this
89
     */
90
    public function setHeight($height)
91
    {
92
        $this->height = $height;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return boolean
99
     */
100
    public function isRegular()
101
    {
102
        return $this->regular;
103
    }
104
105
    /**
106
     * @param boolean $regular
107
     *
108
     * @return $this
109
     */
110
    public function setRegular($regular)
111
    {
112
        $this->regular = $regular;
113
114
        return $this;
115
    }
116
}