NotSupportingVisibilityTrait   A
last analyzed

Coupling/Cohesion

Components 0
Dependencies 0

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getVisibility() 0 4 1
A setVisibility() 0 4 1
1
<?php
2
3
namespace League\Flysystem\Adapter\Polyfill;
4
5
use LogicException;
6
7
trait NotSupportingVisibilityTrait
8
{
9
    /**
10
     * Get the visibility of a file.
11
     *
12
     * @param string $path
13
     *
14
     * @throws LogicException
15
     */
16 3
    public function getVisibility($path)
17
    {
18 3
        throw new LogicException(get_class($this) . ' does not support visibility. Path: ' . $path);
19
    }
20
21
    /**
22
     * Set the visibility for a file.
23
     *
24
     * @param string $path
25
     * @param string $visibility
26
     *
27
     * @throws LogicException
28
     */
29 3
    public function setVisibility($path, $visibility)
30
    {
31 3
        throw new LogicException(get_class($this) . ' does not support visibility. Path: ' . $path . ', visibility: ' . $visibility);
32
    }
33
}
34