AbstractRepository::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
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 mixed $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(mixed $options = null)
25 1
    {
26
        $this->options = $options;
27 1
    }
28
}
29