Completed
Push — master ( 2bf393...a136ed )
by Daniel Rodrigues
02:09
created

BaseRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace API\Repositories;
4
5
use Tymon\JWTAuth\JWTAuth;
6
use API\User;
7
use API\WorkoutType;
8
use API\WorkoutPlan;
9
10
class BaseRepository
11
{
12
    protected $JWTAuth;
13
    protected $user;
14
    protected $workoutType;
15
    protected $workoutPlan;
16
17
    public function __construct(JWTAuth $JWTAuth, User $user, WorkoutType $workoutType, WorkoutPlan $workoutPlan)
18
    {
19
        $this->JWTAuth = $JWTAuth;
20
        $this->user = $user;
21
        $this->workoutType = $workoutType;
22
        $this->workoutPlan = $workoutPlan;
23
    }
24
}