AbstractResponseProcessor::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
namespace Paranoia\Processor;
3
4
use Paranoia\Configuration\AbstractConfiguration;
5
6
abstract class AbstractResponseProcessor
7
{
8
    /** @var AbstractConfiguration */
9
    protected $configuration;
10
11
    /**
12
     * AbstractResponseProcessor constructor.
13
     * @param AbstractConfiguration $configuration
14
     */
15
    public function __construct(AbstractConfiguration $configuration)
16
    {
17
        $this->configuration = $configuration;
18
    }
19
20
    abstract protected function validateResponse($transformedResponse);
21
22
    abstract public function process($rawResponse);
23
}
24