Completed
Push — master ( 296743...12eab9 )
by Kirill
36:17
created

BaseExtend::getRelatedType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * This file is part of Railt 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
declare(strict_types=1);
9
10
namespace Railt\SDL\Base\Processable;
11
12
use Railt\SDL\Base\Definitions\BaseDefinition;
13
use Railt\SDL\Contracts\Definitions\TypeDefinition;
14
use Railt\SDL\Contracts\Processable\ExtendDefinition;
15
use Railt\SDL\Contracts\Type;
16
17
/**
18
 * Class BaseExtend
19
 */
20
abstract class BaseExtend extends BaseDefinition implements ExtendDefinition
21
{
22
    /**
23
     * Extend type name
24
     */
25
    protected const TYPE_NAME = Type::EXTENSION;
26
27
    /**
28
     * @var TypeDefinition
29
     */
30
    protected $type;
31
32
    /**
33
     * @var string
34
     */
35
    protected $name = self::TYPE_NAME;
36
37
    /**
38
     * @return TypeDefinition
39
     */
40
    public function getRelatedType(): TypeDefinition
41
    {
42
        return $this->type;
43
    }
44
}
45