Service::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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