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

BaseRepository::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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