Completed
Push — master ( fcd315...e54b6a )
by John
02:20
created

Response   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 4 1
A getSchema() 0 4 1
1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of the KleijnWeb\ApiDescriptions package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\ApiDescriptions\Description;
10
11
use KleijnWeb\ApiDescriptions\Description\Visitor\VisiteeMixin;
12
13
/**
14
 * @author John Kleijn <[email protected]>
15
 */
16
abstract class Response implements Element
17
{
18
    use VisiteeMixin;
19
20
    /**
21
     * @var int
22
     */
23
    protected $code;
24
25
    /**
26
     * @var Schema
27
     */
28
    protected $schema;
29
30
    /**
31
     * @return int
32
     */
33
    public function getCode(): int
34
    {
35
        return $this->code;
36
    }
37
38
    /**
39
     * @return Schema
40
     */
41
    public function getSchema(): Schema
42
    {
43
        return $this->schema;
44
    }
45
}
46