GenericFixedFDirectory   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 23
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A unfix() 0 4 1
A isFile() 0 4 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