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

Course::getSlope()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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
}