Passed
Push — master ( ac7162...0cc260 )
by Aleksandr
02:52
created

RepositoryTrait::makeGroupRepository()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 1
c 1
b 1
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of the eav package.
4
 * @author    Aleksandr Drobotik <[email protected]>
5
 * @copyright 2023 Aleksandr Drobotik
6
 * @license   https://opensource.org/license/mit  The MIT License
7
 */
8
declare(strict_types=1);
9
10
namespace Drobotik\Eav\Trait;
11
12
use Drobotik\Eav\Repository\AttributeRepository;
13
use Drobotik\Eav\Repository\PivotRepository;
14
use Drobotik\Eav\Repository\ValueRepository;
15
16
trait RepositoryTrait
17
{
18
    public function makePivotRepository(): PivotRepository
19
    {
20
        return new PivotRepository();
21
    }
22
23
    public function makeAttributeRepository(): AttributeRepository
24
    {
25
        return new AttributeRepository();
26
    }
27
28
    public function makeValueRepository(): ValueRepository
29
    {
30
        return new ValueRepository();
31
    }
32
33
}