Passed
Push — master ( 2dd69b...8c613d )
by Guillermo A.
05:54
created

AbstractRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 20
ccs 7
cts 7
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Guillermoandrae\Repositories;
4
5
use Guillermoandrae\Common\DumpableTrait;
6
7
abstract class AbstractRepository implements RepositoryInterface
8
{
9
    use DumpableTrait;
10
11
    /**
12
     * Repository options.
13
     *
14 7
     * @var mixed|null
15
     */
16 7
    protected $options;
17 7
18
    /**
19 1
     * Constructor. Provides the ability to inject dependencies using the RepositoryFactory.
20
     *
21 1
     * @see RepositoryFactory
22 1
     * @param mixed|null $options  The repository options.
23
     */
24
    public function __construct($options = null)
25 1
    {
26
        $this->options = $options;
27 1
    }
28
}
29