Completed
Push — master ( da7714...2001b3 )
by Pavel
02:43
created

RelationshipsItemAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php namespace Pz\Doctrine\Rest\Action\Relationships;
2
3
use Pz\Doctrine\Rest\Action\Related\RelatedItemAction;
4
use Pz\Doctrine\Rest\Contracts\RestRequestContract;
5
use Pz\Doctrine\Rest\RestResponse;
6
7
class RelationshipsItemAction extends RelatedItemAction
8
{
9
    /**
10
     * @param RestRequestContract $request
11
     *
12
     * @return RestResponse
13
     */
14 1
    public function handle($request)
15
    {
16 1
        $request->isRelationships(true);
17 1
        return parent::handle($request);
18
    }
19
}
20