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
/**
6
 * @deprecated
7
 */
8
class Directory extends Handler
0 ignored issues
show
Deprecated Code introduced by Frank de Jonge
The class League\Flysystem\Handler has been deprecated.

This class, trait or interface has been deprecated.

Loading history...
9
{
10
    /**
11
     * Delete the directory.
12
     *
13
     * @return bool
14
     */
15 3
    public function delete()
16
    {
17 3
        return $this->filesystem->deleteDir($this->path);
18
    }
19
20
    /**
21
     * List the directory contents.
22
     *
23
     * @param bool $recursive
24
     *
25
     * @return array|bool directory contents or false
26
     */
27 3
    public function getContents($recursive = false)
28
    {
29 3
        return $this->filesystem->listContents($this->path, $recursive);
30
    }
31
}
32