Repository   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
ccs 3
cts 3
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __call() 0 5 1
1
<?php
2
3
namespace Rougin\Credo;
4
5
use Doctrine\Common\Util\Inflector;
6
use Doctrine\ORM\EntityRepository;
7
8
/**
9
 * Entity Repository
10
 *
11
 * @package Credo
12
 * @author  Rougin Gutib <[email protected]>
13
 */
14
class Repository extends EntityRepository
15
{
16
    /**
17
     * Calls methods from EntityRepository in underscore case.
18
     *
19
     * @param  string $method
20
     * @param  mixed  $parameters
21
     * @return mixed
22
     */
23 2
    public function __call($method, $parameters)
24
    {
25 2
        $instance = array($this, Inflector::camelize($method));
26
27 2
        return call_user_func_array($instance, $parameters);
28
    }
29
}
30