Passed
Push — develop ( 481302...fbb092 )
by Paul
02:15
created

UseModel::setFullName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PhpUnitGen\Model;
4
5
use PhpUnitGen\Model\ModelInterface\UseModelInterface;
6
use PhpUnitGen\Model\PropertyTrait\NameTrait;
7
use PhpUnitGen\Model\PropertyTrait\NodeTrait;
8
9
/**
10
 * Class UseModel.
11
 *
12
 * @author     Paul Thébaud <[email protected]>.
13
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
14
 * @license    https://opensource.org/licenses/MIT The MIT license.
15
 * @link       https://github.com/paul-thebaud/phpunit-generator
16
 * @since      Class available since Release 2.0.0.
17
 */
18
class UseModel implements UseModelInterface
19
{
20
    use NameTrait;
21
    use NodeTrait;
22
23
    /**
24
     * @var string $fullName The full name of this use statement.
25
     */
26
    private $fullName;
27
28
    /**
29
     * @var string|null $alias The alias of this use statement.
30
     */
31
    private $alias;
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function setFullName(string $fullName): void
37
    {
38
        $this->fullName = $fullName;
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function getFullName(): string
45
    {
46
        return $this->fullName;
47
    }
48
49
    /**
50
     * {@inheritdoc}
51
     */
52
    public function setAlias(?string $alias): void
53
    {
54
        $this->alias = $alias;
55
    }
56
57
    /**
58
     * {@inheritdoc}
59
     */
60
    public function getAlias(): ?string
61
    {
62
        return $this->alias;
63
    }
64
}