Passed
Push — master ( edb799...f409da )
by Petr
07:56
created

AAnswer::customInit()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 0
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace kalanis\RemoteRequest\Protocols\Fsp\Answer;
4
5
6
use kalanis\RemoteRequest\Protocols\Fsp;
7
8
9
/**
10
 * Class AAnswer
11
 * @package kalanis\RemoteRequest\Protocols\Fsp\Answer
12
 * Abstract processor - common calls across the answer
13
 */
14
abstract class AAnswer
15
{
16
    /** @var Fsp\Answer */
17
    protected $answer = null;
18
19 13
    public function __construct(Fsp\Answer $answer)
20
    {
21 13
        $this->answer = $answer;
22 13
        $this->customInit();
23 13
    }
24
25 13
    protected function customInit(): void
26
    {
27 13
    }
28
29 1
    public function getDataClass(): Fsp\Answer
30
    {
31 1
        return $this->answer;
32
    }
33
34
    abstract public function process(): self;
35
}
36