PsrBodyTransformer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A transform() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the zibios/wrike-php-library package.
7
 *
8
 * (c) Zbigniew Ślązak
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zibios\WrikePhpLibrary\Transformer\Response\Psr;
15
16
use Psr\Http\Message\ResponseInterface;
17
use Psr\Http\Message\StreamInterface;
18
19
/**
20
 * Psr Body Transformer for PSR Response from HTTP Client.
21
 */
22
class PsrBodyTransformer extends AbstractPsrResponseTransformer
23
{
24
    /**
25
     * @param ResponseInterface $response
26
     * @param string            $resourceClass
27
     *
28
     * @throws \InvalidArgumentException
29
     *
30
     * @return StreamInterface
31
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
32
     */
33 80
    public function transform(ResponseInterface $response, $resourceClass): StreamInterface
34
    {
35 80
        return $this->transformToPsrBody($response);
36
    }
37
}
38