XervicePathFinder   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getPaths() 0 3 1
1
<?php
2
3
4
namespace Xervice\Twig\Business\Model\Path;
5
6
7
use Symfony\Component\Finder\Finder;
8
9
class XervicePathFinder extends Finder implements XervicePathFinderInterface
10
{
11
    /**
12
     * @var array
13
     */
14
    private $paths;
15
16
    /**
17
     * XervicePathFinder constructor.
18
     *
19
     * @param array $paths
20
     */
21 2
    public function __construct(array $paths)
22
    {
23 2
        $this->paths = $paths;
24 2
    }
25
26
    /**
27
     * @return $this
28
     */
29 2
    public function getPaths()
30
    {
31 2
        return $this->in($this->paths)->directories()->depth(0);
32
    }
33
34
}