EloquentTeamMatchesRepository   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A all() 0 4 1
A findById() 0 4 1
A create() 0 4 1
A update() 0 4 1
A getByMatch() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: mschmidt
5
 * Date: 4/22/2017
6
 * Time: 9:40 AM
7
 */
8
9
namespace GolfLeague\Storage\Team;
10
11
use \Teammatch as Teammatch;
12
13
use GolfLeague\Storage\Team\TeamMatchesRepository;
14
15
class EloquentTeamMatchesRepository implements TeamMatchesRepository
16
{
17
    private $teamMatch;
18
19
    public function __construct(Teammatch $teamMatch)
20
    {
21
        $this->teamMatch = $teamMatch;
22
    }
23
24
    public function all()
25
    {
26
        // TODO: Implement all() method.
27
    }
28
29
    public function findById($id)
30
    {
31
        // TODO: Implement findById() method.
32
    }
33
34
    public function create($input)
35
    {
36
        // TODO: Implement create() method.
37
    }
38
39
    public function update($team)
40
    {
41
        // TODO: Implement update() method.
42
    }
43
44
    public function getByMatch($matchId)
45
    {
46
        return $this->teamMatch->where('match_id', '=', $matchId)->get();
47
    }
48
}
49