Service   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 24
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace App\Core;
4
5
use Illuminate\Contracts\Container\Container;
6
7
abstract class Service
8
{
9
    /**
10
     * @var Container
11
     */
12
    protected $app;
13
14
    /**
15
     * @var AbstractRepository
16
     */
17
    protected $repo;
18
19
    /**
20
     * Service constructor.
21
     *
22
     * @param Container $app
23
     * @param AbstractRepository $repo
24
     */
25
    public function __construct(Container $app, AbstractRepository $repo)
26
    {
27
        $this->app = $app;
28
        $this->repo = $repo;
29
    }
30
}
31