Passed
Push — develop ( 8c6599...c9bdac )
by Stan
04:29
created

Binding::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Krenor\Prometheus\Contracts;
4
5
abstract class Binding
6
{
7
    /**
8
     * @var Repository
9
     */
10
    protected $repository;
11
12
    /**
13
     * @var string
14
     */
15
    protected $key;
16
17
    /**
18
     * Binding constructor.
19
     *
20
     * @param Repository $repository
21
     * @param string $key
22
     */
23 38
    public function __construct(Repository $repository, string $key)
24
    {
25 38
        $this->repository = $repository;
26 38
        $this->key = $key;
27 38
    }
28
}
29