NotSupportingVisibilityTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

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
    public function getVisibility($path)
17
    {
18
        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
    public function setVisibility($path, $visibility)
30
    {
31
        throw new LogicException(get_class($this) . ' does not support visibility. Path: ' . $path . ', visibility: ' . $visibility);
32
    }
33
}
34