Your IP : 3.17.175.167


Current Path : /home/lentoinv/props/vendor/league/flysystem/src/
Upload File :
Current File : /home/lentoinv/props/vendor/league/flysystem/src/InvalidVisibilityProvided.php

<?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);
    }
}

?>