Completed
Push — master ( f82df9...1c40d0 )
by Michael
03:47
created

Course   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 44
ccs 14
cts 14
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRating() 0 4 1
A setRating() 0 4 1
A getSlope() 0 4 1
A setSlope() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: mschmidt
5
 * Date: 9/13/2016
6
 * Time: 10:28 AM
7
 */
8
9
namespace GLsoftware\Golf;
10
11
12
class Course
13
{
14
    private $rating;
15
    private $slope;
16
17 4
    public function __construct($rating, $slope)
18
    {
19 4
        $this->rating = $rating;
20 4
        $this->slope = $slope;
21 4
    }
22
23
    /**
24
     * @return mixed
25
     */
26 2
    public function getRating()
27
    {
28 2
        return $this->rating;
29
    }
30
31
    /**
32
     * @param mixed $rating
33
     */
34 1
    public function setRating($rating)
35
    {
36 1
        $this->rating = $rating;
37 1
    }
38
39
    /**
40
     * @return mixed
41
     */
42 2
    public function getSlope()
43
    {
44 2
        return $this->slope;
45
    }
46
47
    /**
48
     * @param mixed $slope
49
     */
50 1
    public function setSlope($slope)
51
    {
52 1
        $this->slope = $slope;
53 1
    }
54
55
}