Games::getNetWinner()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace GolfLeague;
4
5
class Games
6
{
7
	public function __construct()
8
    {
9
10
    }
11
12
	public function getGrossWinner()
13
	{
14
		return 'gross';
15
		//take an array of players and gross score
16
		//find lowest and return
17
        //for each score in a given round determine +/- for each
18
        //sort and return
19
20
21
	}
22
23
    public function getNetWinner()
24
    {
25
        //for each score in a given round determine +/- for each AFTER subtracting handicap
26
27
    }
28
29
    public function currentParTotal($courseId, $holesPlayed)
0 ignored issues
show
Unused Code introduced by
The parameter $courseId is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $holesPlayed is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
    {
31
        //find par total for course given unmber of holes played
32
33
    }
34
}