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

Response::__construct()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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