Completed
Push — master ( 993468...5fd9a9 )
by Markus
12s queued 10s
created

FinderFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createSymfonyFinder() 0 3 1
A create() 0 3 1
1
<?php
2
3
namespace Jellyfish\FinderSymfony;
4
5
use Jellyfish\Finder\FinderFactoryInterface;
6
use Jellyfish\Finder\FinderInterface;
7
use Symfony\Component\Finder\Finder as SymfonyFinder;
8
9
class FinderFactory implements FinderFactoryInterface
10
{
11
    /**
12
     * @return \Jellyfish\Finder\FinderInterface
13
     */
14
    public function create(): FinderInterface
15
    {
16
        return new Finder($this->createSymfonyFinder());
17
    }
18
19
    /**
20
     * @return \Symfony\Component\Finder\Finder
21
     */
22
    protected function createSymfonyFinder(): SymfonyFinder
23
    {
24
        return new SymfonyFinder();
25
    }
26
}
27