IgnoreFiles::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace IgnoreFiles;
4
5
use IgnoreFiles\Service\IgnoreEntrySearcher;
6
7
class IgnoreFiles
8
{
9
    /**
10
     * @var Container
11
     */
12
    private $container;
13
14
    /**
15
     * IgnoreFiles constructor.
16
     */
17
    public function __construct()
18
    {
19
        $this->container = new Container();
20
    }
21
22
    /**
23
     * @param string $entry
24
     *
25
     * @return bool
26
     */
27
    public function isIgnored($entry)
28
    {
29
        /** @var IgnoreEntrySearcher $service */
30
        $service = $this->container->get('ignore.entry.searcher');
31
32
        return $service->search($entry);
33
    }
34
}
35