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

TournamentService::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 4
nc 1
nop 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
}