Completed
Push — master ( ed2eb8...ae9c7c )
by Andrii
03:34
created

TargetRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
/**
3
 * API for Billing
4
 *
5
 * @link      https://github.com/hiqdev/billing-hiapi
6
 * @package   billing-hiapi
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\billing\hiapi\target;
12
13
use hiapi\components\ConnectionInterface;
14
use hiqdev\php\billing\target\TargetFactoryInterface;
15
16
class TargetRepository extends \hiapi\repositories\BaseRepository
17
{
18
    /**
19
     * @var TargetFactoryInterface
20
     */
21
    protected $factory;
22
23
    public function __construct(
24
        ConnectionInterface $db,
25
        TargetFactoryInterface $factory,
26
        array $config = []
27
    ) {
28
        parent::__construct($config);
29
30
        $this->db = $db;
31
        $this->factory = $factory;
32
    }
33
}
34