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

AbstractRepository::findById()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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