Games   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 30
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A currentParTotal() 0 5 1
A getGrossWinner() 0 10 1
A getNetWinner() 0 5 1
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
}