Completed
Push — master ( 3e395d...4a7c7d )
by Elf
01:11
created

Connection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
namespace ElfSundae\Laravel\Hashid;
4
5
abstract class Connection implements ConnectionInterface
6
{
7
    /**
8
     * The application instance.
9
     *
10
     * @var \Illuminate\Foundation\Application
11
     */
12
    protected $app;
13
14
    /**
15
     * The hashid connection configuration options.
16
     *
17
     * @var array
18
     */
19
    protected $config = [];
20
21
    /**
22
     * Create a new hashid connection instance.
23
     *
24
     * @param  \Illuminate\Foundation\Application  $app
25
     * @param  array  $config
26
     */
27
    public function __construct($app, $config)
28
    {
29
        $this->app = $app;
30
        $this->config = $config;
31
    }
32
}
33