SymbolicLinkEncountered.php 531 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare(strict_types=1);
  3. namespace League\Flysystem;
  4. use RuntimeException;
  5. final class SymbolicLinkEncountered extends RuntimeException implements FilesystemException
  6. {
  7. private string $location;
  8. public function location(): string
  9. {
  10. return $this->location;
  11. }
  12. public static function atLocation(string $pathName): SymbolicLinkEncountered
  13. {
  14. $e = new static("Unsupported symbolic link encountered at location $pathName");
  15. $e->location = $pathName;
  16. return $e;
  17. }
  18. }