Completed
Push — master ( 055f1b...f72a4b )
by Pavel
52s
created

GetResponseEvent::getResponse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: batanov.pavel
5
 * Date: 11.02.2016
6
 * Time: 18:30
7
 */
8
9
namespace Bankiru\Api\Rpc\Event;
10
11
12
use Bankiru\Api\Rpc\RpcEvent;
13
use ScayTrase\Api\Rpc\RpcResponseInterface;
14
15
class GetResponseEvent extends RpcResponseEvent
16
{
17 7
    public function getEndpoint()
18
    {
19 7
        return $this->getRequest()->getAttributes()->get('_endpoint');
20
    }
21
}
22