Passed
Push — master ( 19e97f...f6e67c )
by Dieter
07:06 queued 02:46
created

HandlerGetFareFamilyDescription::analyze()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Amadeus\Client\ResponseHandler\Fare;
4
5
use Amadeus\Client\Exception;
6
use Amadeus\Client\ResponseHandler\StandardResponseHandler;
7
use Amadeus\Client\Result;
8
use Amadeus\Client\Session\Handler\SendResult;
9
10
/**
11
 * Class HandlerGetFareFamilyDescription
12
 * @package Amadeus\Client\ResponseHandler\Fare
13
 * @author Valerii Nezhurov <[email protected]>
14
 */
15
class HandlerGetFareFamilyDescription extends StandardResponseHandler
16
{
17
    /**
18
     * @param SendResult $response
19
     * @return Result
20
     * @throws Exception
21
     */
22
    public function analyze(SendResult $response)
23
    {
24
        return $this->analyzeSimpleResponseErrorCodeAndMessage($response);
25
    }
26
}
27