GraphLoaderTrait   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 26
ccs 0
cts 12
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A retrieveAll() 0 4 1
A retrieveOne() 0 4 1
A retrieve() 0 4 1
1
<?php
2
3
namespace Majora\Framework\Loader\Bridge\Graph;
4
5
use Majora\Framework\Loader\LoaderInterface;
6
7
/**
8
 * Trait to use into Graph loaders to get a simple implementation of LoaderInterface
9
 */
10
trait GraphLoaderTrait
11
{
12
    /**
13
     * @see LoaderInterface::retrieveAll()
14
     */
15
    public function retrieveAll(array $filters = array(), $limit = null, $offset = null)
0 ignored issues
show
Unused Code introduced by
The parameter $filters 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...
Unused Code introduced by
The parameter $limit 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...
Unused Code introduced by
The parameter $offset 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
        throw new \BadMethodCallException(sprintf('Not yet implemented : %s::%s()', __CLASS__, __FUNCTION__));
18
    }
19
20
    /**
21
     * @see LoaderInterface::retrieveOne()
22
     */
23
    public function retrieveOne(array $filters = array())
0 ignored issues
show
Unused Code introduced by
The parameter $filters 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
        throw new \BadMethodCallException(sprintf('Not yet implemented : %s::%s()', __CLASS__, __FUNCTION__));
26
    }
27
28
    /**
29
     * @see LoaderInterface::retrieve()
30
     */
31
    public function retrieve($id)
0 ignored issues
show
Unused Code introduced by
The parameter $id 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...
32
    {
33
        throw new \BadMethodCallException(sprintf('Not yet implemented : %s::%s()', __CLASS__, __FUNCTION__));
34
    }
35
}
36