You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
553 B
21 lines
553 B
1 year ago
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace League\Flysystem;
|
||
|
|
||
|
use InvalidArgumentException;
|
||
|
|
||
|
use function var_export;
|
||
|
|
||
|
class InvalidVisibilityProvided extends InvalidArgumentException implements FilesystemException
|
||
|
{
|
||
|
public static function withVisibility(string $visibility, string $expectedMessage): InvalidVisibilityProvided
|
||
|
{
|
||
|
$provided = var_export($visibility, true);
|
||
|
$message = "Invalid visibility provided. Expected {$expectedMessage}, received {$provided}";
|
||
|
|
||
|
throw new InvalidVisibilityProvided($message);
|
||
|
}
|
||
|
}
|