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

NoopHydrator::hydrate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
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