PathConfiguration   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 97
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 2 Features 0
Metric Value
wmc 8
c 3
b 2
f 0
lcom 0
cbo 0
dl 0
loc 97
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A isFollowSymlinks() 0 4 1
A setFollowSymlinks() 0 5 1
A setBasePath() 0 5 1
A getBasePath() 0 4 1
A setExcludedDirs() 0 5 1
A getExcludedDirs() 0 4 1
A setExtensions() 0 5 1
A getExtensions() 0 4 1
1
<?php
2
3
/*
4
 * (c) Jean-François Lépine <https://twitter.com/Halleck45>
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 Hal\Application\Config;
11
12
/**
13
 * Path configuration
14
 *
15
 * @author Jean-François Lépine <https://twitter.com/Halleck45>
16
 */
17
class PathConfiguration
18
{
19
    /**
20
     * @var string
21
     */
22
    private $excludedDirs;
23
24
    /**
25
     * @var string
26
     */
27
    private $extensions;
28
29
    /**
30
     * @var string
31
     */
32
    private $basePath;
33
34
    /**
35
     * @var bool
36
     */
37
    private $followSymlinks = false;
38
39
    /**
40
     * @param mixed $basePath
41
     * @return self
42
     */
43
    public function setBasePath($basePath)
44
    {
45
        $this->basePath = $basePath;
46
        return $this;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getBasePath()
53
    {
54
        return $this->basePath;
55
    }
56
57
    /**
58
     * @param mixed $excludedDirs
59
     * @return self
60
     */
61
    public function setExcludedDirs($excludedDirs)
62
    {
63
        $this->excludedDirs = $excludedDirs;
64
        return $this;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getExcludedDirs()
71
    {
72
        return $this->excludedDirs;
73
    }
74
75
    /**
76
     * @param mixed $extensions
77
     * @return self
78
     */
79
    public function setExtensions($extensions)
80
    {
81
        $this->extensions = $extensions;
82
        return $this;
83
    }
84
85
    /**
86
     * @return string
87
     */
88
    public function getExtensions()
89
    {
90
        return $this->extensions;
91
    }
92
93
    /**
94
     * @return boolean
95
     */
96
    public function isFollowSymlinks()
97
    {
98
        return $this->followSymlinks;
99
    }
100
101
    /**
102
     * @param boolean $followSymlinks
103
     * @return self
104
     */
105
    public function setFollowSymlinks($followSymlinks)
106
    {
107
        $this->followSymlinks = (bool) $followSymlinks;
108
        return $this;
109
    }
110
111
112
113
}