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

HandlerGetFareFamilyDescription   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A analyze() 0 4 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