Directory   A
last analyzed

Coupling/Cohesion

Components 1
Dependencies 2

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 1
cbo 2
dl 0
loc 24
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A delete() 0 4 1
A getContents() 0 4 1
1
<?php
2
3
namespace League\Flysystem;
4
5
class Directory extends Handler
6
{
7
    /**
8
     * Delete the directory.
9
     *
10
     * @return bool
11
     */
12 3
    public function delete()
13
    {
14 3
        return $this->filesystem->deleteDir($this->path);
15
    }
16
17
    /**
18
     * List the directory contents.
19
     *
20
     * @param bool $recursive
21
     *
22
     * @return array|bool directory contents or false
23
     */
24 3
    public function getContents($recursive = false)
25
    {
26 3
        return $this->filesystem->listContents($this->path, $recursive);
27
    }
28
}
29