Completed
Push — master ( eda6ab...289717 )
by Igor
01:38
created

Import::fullyQualifiedClassName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Leaditin\Code;
4
5
/**
6
 * @package Leaditin\Code
7
 * @author Igor Vuckovic <[email protected]>
8
 * @license MIT
9
 */
10
class Import
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $fullyQualifiedClassName;
16
17
    /**
18
     * @var null|string
19
     */
20
    protected $alias;
21
22
    /**
23
     * @param string $fullyQualifiedClassName
24
     * @param null|string $alias
25
     */
26 2
    public function __construct(string $fullyQualifiedClassName, string $alias = null)
27
    {
28 2
        $this->fullyQualifiedClassName = $fullyQualifiedClassName;
29 2
        $this->alias = $alias;
30 2
    }
31
32
    /**
33
     * @return string
34
     */
35 2
    public function fullyQualifiedClassName(): string
36
    {
37 2
        return $this->fullyQualifiedClassName;
38
    }
39
40
    /**
41
     * @return null|string
42
     */
43 2
    public function alias(): ?string
44
    {
45 2
        return $this->alias;
46
    }
47
}
48