VirtualFSObject   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 33.33%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 4 1
A mimetype() 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
/**
13
 * This represents an FSObject-like object that is required during
14
 * unfolding a directory structure.
15
 */
16
class VirtualFSObject extends FSObject
17
{
18 4
    public function name() : string
19
    {
20 4
        return $this->path();
21
    }
22
23
    public function mimetype() : ?string
24
    {
25
        return null;
26
    }
27
28
    public function isFile() : bool
29
    {
30
        return false;
31
    }
32
}
33