ApiRepositoryTrait   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 8
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\Api;
4
5
use Majora\Framework\Model\CollectionableInterface;
6
7
/**
8
 * Base trait for api repository.
9
 */
10
trait ApiRepositoryTrait
11
{
12
    /**
13
     * @see RepositoryInterface::persist()
14
     */
15
    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...
16
    {
17
        return;
18
    }
19
20
    /**
21
     * @see RepositoryInterface::remove()
22
     */
23
    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...
24
    {
25
        return;
26
    }
27
}
28