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

Import   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 38
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A fullyQualifiedClassName() 0 4 1
A alias() 0 4 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