ApiRepositoryTrait::remove()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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