Completed
Push — develop ( fbdd82...317691 )
by Mike
09:29
created

ConfigureCache::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * This file is part of phpDocumentor.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * @copyright 2010-2015 Mike van Riel<[email protected]>
9
 * @license   http://www.opensource.org/licenses/mit-license.php MIT
10
 * @link      http://phpdoc.org
11
 */
12
13
namespace phpDocumentor\Application;
14
15
use phpDocumentor\DomainModel\Path;
16
17
final class ConfigureCache
18
{
19
    /** @var Path */
20
    private $location;
21
22
    /** @var bool */
23
    private $enabled = true;
24
25
    /**
26
     * @param Path $location
27
     * @param bool $enabled
28
     */
29
    public function __construct(Path $location, $enabled = true)
30
    {
31
        $this->location = $location;
32
        $this->enabled = $enabled;
33
    }
34
35
    /**
36
     * @return Path
37
     */
38
    public function location()
39
    {
40
        return $this->location;
41
    }
42
43
    /**
44
     * @return boolean
45
     */
46
    public function enabled()
47
    {
48
        return $this->enabled;
49
    }
50
}
51