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

FinderFactory::createSymfonyFinder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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