| 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 |
|