AbstractResult   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
result() 0 1 ?
1
<?php
2
declare(strict_types=1);
3
4
namespace Ytake\KsqlClient\Result;
5
6
use Psr\Http\Message\ResponseInterface;
7
use Ytake\KsqlClient\Entity\EntityInterface;
8
9
/**
10
 * Class AbstractResult
11
 */
12
abstract class AbstractResult
13
{
14
    /** @var ResponseInterface */
15
    protected $response;
16
17
    /**
18
     * @param ResponseInterface $response
19
     */
20
    public function __construct(ResponseInterface $response)
21
    {
22
        $this->response = $response;
23
    }
24
25
    /**
26
     * return Result Entity
27
     * @return EntityInterface
28
     */
29
    abstract public function result(): EntityInterface;
30
}
31