Passed
Branch master (203e41)
by Nate
01:56
created

DefaultCallAdapter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A adapt() 0 4 1
1
<?php
2
/*
3
 * Copyright (c) Nate Brunette.
4
 * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5
 */
6
7
declare(strict_types=1);
8
9
namespace Tebru\Retrofit\Internal\CallAdapter;
10
11
use Tebru\Retrofit\Call;
12
use Tebru\Retrofit\CallAdapter;
13
14
/**
15
 * Class DefaultCallAdapter
16
 *
17
 * By default, do not alter a [@see Call]
18
 *
19
 * @author Nate Brunette <[email protected]>
20
 */
21
final class DefaultCallAdapter implements CallAdapter
22
{
23
    /**
24
     * Accepts a [@see Call] and converts it to the appropriate type
25
     *
26
     * @param Call $call
27
     * @return Call
28
     */
29 12
    public function adapt(Call $call): Call
30
    {
31 12
        return $call;
32
    }
33
}
34