StaminaLevelCombinaison::getstamina()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * (c) Jérémy Marodon <[email protected]>
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace Th3Mouk\PokemonGoIVCalculator\Entities;
10
11
class StaminaLevelCombinaison
12
{
13
    /**
14
     * @var Level
15
     */
16
    protected $level;
17
18
    /**
19
     * @var int
20
     */
21
    protected $stamina;
22
23
    /**
24
     * StaminaLevelCombinaison constructor.
25
     * @param Level $level
26
     * @param int   $stamina
27
     */
28
    public function __construct(Level $level, int $stamina)
29
    {
30
        $this->level = $level;
31
        $this->stamina = $stamina;
32
    }
33
34
    /**
35
     * Get level
36
     *
37
     * @return Level
38
     */
39
    public function getLevel(): Level
40
    {
41
        return $this->level;
42
    }
43
44
    /**
45
     * Get stamina
46
     *
47
     * @return int
48
     */
49
    public function getstamina(): int
50
    {
51
        return $this->stamina;
52
    }
53
}
54