Subversion-Projekte lars-tiefland.laravel_shop

Revision

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 RuntimeException;
8
 
9
final class UnreadableFileEncountered extends RuntimeException implements FilesystemException
10
{
11
    /**
12
     * @var string
13
     */
14
    private $location;
15
 
16
    public function location(): string
17
    {
18
        return $this->location;
19
    }
20
 
21
    public static function atLocation(string $location): UnreadableFileEncountered
22
    {
23
        $e = new static("Unreadable file encountered at location {$location}.");
24
        $e->location = $location;
25
 
26
        return $e;
27
    }
28
}