Completed
Push — master ( bd4c23...b341c0 )
by Filipe
10:29
created

NameSpaceEntry::__construct()   A

Complexity

Conditions 1
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 1
eloc 3
nc 1
nop 2
1
<?php
2
3
/**
4
 * This file is part of slick/mvc
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\Mvc\Console\Command\Task\AskForNamespace;
11
12
/**
13
 * NameSpaceEntry
14
 *
15
 * @package Slick\Mvc\Console\Command\Task\AskForNamespace
16
 * @author  Filipe Silva <[email protected]>
17
 */
18
class NameSpaceEntry
19
{
20
21
    /**
22
     * @var string
23
     */
24
    private $nameSpace;
25
26
    /**
27
     * @var string
28
     */
29
    private $path;
30
31
    /**
32
     * Creates a Namespace Entry
33
     *
34
     * @param string $nameSpace
35
     * @param string $path
36
     */
37
    public function __construct($nameSpace, $path)
38
    {
39
        $this->nameSpace = $nameSpace;
40
        $this->path = $path;
41
    }
42
43
    /**
44
     * Get the entry name space
45
     *
46
     * @return string
47
     */
48
    public function getNameSpace()
49
    {
50
        return $this->nameSpace;
51
    }
52
53
    /**
54
     * Get the path for this name space entry
55
     *
56
     * @return string
57
     */
58
    public function getPath()
59
    {
60
        return $this->path;
61
    }
62
}
63