Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
namespace League\Flysystem;
|
|
|
6 |
|
|
|
7 |
use InvalidArgumentException;
|
|
|
8 |
|
|
|
9 |
use function var_export;
|
|
|
10 |
|
|
|
11 |
class InvalidVisibilityProvided extends InvalidArgumentException implements FilesystemException
|
|
|
12 |
{
|
|
|
13 |
public static function withVisibility(string $visibility, string $expectedMessage): InvalidVisibilityProvided
|
|
|
14 |
{
|
|
|
15 |
$provided = var_export($visibility, true);
|
|
|
16 |
$message = "Invalid visibility provided. Expected {$expectedMessage}, received {$provided}";
|
|
|
17 |
|
|
|
18 |
throw new InvalidVisibilityProvided($message);
|
|
|
19 |
}
|
|
|
20 |
}
|