NotSupportingVisibilityTrait::getVisibility()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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