GenericFixedFDirectory::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
/******************************************************************************
3
 * An iterator interface over the Leagues flysystem.
4
 * Copyright (c) 2021, 2015 Richard Klees <[email protected]>
5
 *
6
 * This software is licensed under GPLv3. You should have received
7
 * a copy of the along with the code.
8
 */
9
10
namespace Lechimp\Flightcontrol;
11
12
class GenericFixedFDirectory extends FixedFDirectory
13
{
14
    /**
15
     * @var FDirectory
16
     */
17
    protected $fdirectory;
18
19 32
    public function __construct(FDirectory $fdirectory)
20
    {
21 32
        parent::__construct($fdirectory->flightcontrol(), $fdirectory->path());
22 32
        $this->fdirectory = $fdirectory;
23 32
    }
24
25 32
    public function unfix() : FDirectory
26
    {
27 32
        return $this->fdirectory;
28
    }
29
30 18
    public function isFile() : bool
31
    {
32 18
        return false;
33
    }
34
}
35