Completed
Pull Request — master (#14)
by Pavel
04:14
created

CustomTestRepository::doCustomStuff()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
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