Completed
Push — master ( ff5b0d...faa513 )
by Tobias
05:10 queued 02:50
created

NoopHydrator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A hydrate() 0 4 1
1
<?php
2
3
namespace Happyr\ApiClient\Hydrator;
4
5
use Psr\Http\Message\ResponseInterface;
6
7
/**
8
 * Do not hydrate to any object at all.
9
 *
10
 * @author Tobias Nyholm <[email protected]>
11
 */
12
final class NoopHydrator implements Hydrator
13
{
14
    /**
15
     * @param ResponseInterface $response
16
     * @param string            $class
17
     *
18
     * @throws \LogicException
19
     */
20
    public function hydrate(ResponseInterface $response, $class)
21
    {
22
        throw new \LogicException('The Noop Hydrator should never be called');
23
    }
24
}
25