VfsAdapter   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 3
c 1
b 1
f 0
lcom 0
cbo 1
dl 0
loc 25
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
A ensureDirectory() 0 4 1
1
<?php
2
3
namespace Yoghi\Bundle\MaddaBundleTest\Utils;
4
5
use League\Flysystem\Adapter\Local;
6
7
class VfsAdapter extends Local
8
{
9
    /**
10
     * Constructor.
11
     *
12
     * @param string $root
13
     * @param int    $writeFlags
14
     * @param int    $linkHandling
15
     * @param array  $permissions
16
     */
17
    public function __construct($root, $writeFlags = 0, $linkHandling = self::DISALLOW_LINKS, array $permissions = [])
18
    {
19
        parent::__construct($root, $writeFlags, $linkHandling, $permissions);
20
    }
21
22
    public function ensureDirectory($root)
23
    {
24
        return $root;
25
    }
26
27
    public function __toString()
28
    {
29
        return $this->getPathPrefix();
30
    }
31
}
32