Passed
Pull Request — master (#14)
by Pavel
05:12
created

CustomTestRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 6

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 6
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A doCustomStuff() 0 9 1
1
<?php
2
3
namespace Bankiru\Api\Doctrine\Test\Repository;
4
5
use Bankiru\Api\Doctrine\EntityRepository;
6
use Bankiru\Api\Doctrine\Test\RpcRequestMock;
7
8
class CustomTestRepository extends EntityRepository
9
{
10
    public function doCustomStuff()
11
    {
12
        $request = new RpcRequestMock(
13
            $this->getMetadata()->getMethodContainer()->getMethod('custom'),
14
            ['param1'=>'value1']
15
        );
16
17
        return $this->getClient()->invoke([$request])->getResponse($request)->getBody();
18
    }
19
}
20