StaminaLevelCombinaison   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLevel() 0 4 1
A getstamina() 0 4 1
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