Completed
Push — master ( 7b9015...c5b311 )
by Vladimir
26s queued 11s
created

Folder::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2.0185

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
ccs 5
cts 6
cp 0.8333
rs 9.9332
cc 2
nc 2
nop 1
crap 2.0185
1
<?php
2
3
namespace allejo\stakx\Filesystem;
4
5
/**
6
 * A representation of a folder on a given filesystem, virtual or physical.
7
 *
8
 * This class extends \SplFileInfo and adds new methods along with overriding some methods solely because I feel that
9
 * some of the naming can be misleading.
10
 *
11
 * @since 0.2.0
12
 */
13
final class Folder extends BaseFilesystemItem
14
{
15
    /**
16
     * Get the name of the with the extension.
17
     *
18
     * @since 0.2.0
19
     *
20
     * @return string
21
     */
22
    public function getFolderName()
23
    {
24
        return $this->getFullName();
25
    }
26
}
27