Completed
Push — master ( 11ce72...00c3d8 )
by Michael
03:03
created

TournamentService   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 9 1
1
<?php
2
3
namespace GolfLeague\Services;
4
5
use GolfLeague\Services\LeaderboardService;
6
use \Tournament as Tournament;
7
use \Tournamentdate as Tournamentdate;
8
9
class TournamentService
10
{
11
12
    public function create($input)
13
    {
14
        //return $input;
15
        $tournament = new Tournament($input);
16
        $tournament->save();
17
18
        return $tournament;
19
20
    }
21
}