GraphRepositoryTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A persist() 0 4 1
A remove() 0 4 1
1
<?php
2
3
namespace Majora\Framework\Repository\Graph;
4
5
use Majora\Framework\Model\CollectionableInterface;
6
use Majora\Framework\Repository\RepositoryInterface;
7
8
/**
9
 * Trait to use into Graph repositories to get a simple implementation of RepositoryInterface
10
 */
11
trait GraphRepositoryTrait
12
{
13
    /**
14
     * @see RepositoryInterface::persist()
15
     */
16
    public function persist(CollectionableInterface $entity)
0 ignored issues
show
Unused Code introduced by
The parameter $entity is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
17
    {
18
19
    }
20
21
    /**
22
     * @see RepositoryInterface::remove()
23
     */
24
    public function remove(CollectionableInterface $entity)
0 ignored issues
show
Unused Code introduced by
The parameter $entity is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
25
    {
26
27
    }
28
}
29