public static function at($path)
    {
        $file = new static($path);

        if (! $file->exists()) {
            throw new NonExistentFileException("File does not exist at $path");
        }

        if (! $file->isReadable()) {
            throw new FilePermissionsException("File not readable at $path");
        }

        return $file;
    }
public static function at($path)
    {
        $file = new static($path);

        if (! $file->exists()) {
            throw new NonExistentFileException("File does not exist at $path");
        }

        if (! $file->isReadable()) {
            throw new FilePermissionsException("File not readable at $path");
        }

        return $file;
    }
public static function at ( $ path ) { $ file = new static ( $ path ) ; if ( ! $ file -> exists ( ) ) { throw new NonExistentFileException ( "File does not exist at $path" ) ; } if ( ! $ file -> isReadable ( ) ) { throw new FilePermissionsException ( "File not readable at $path" ) ; } return $ file ; }
Get a new instance, and ensure the file is readable.

@param $path

@throws NonExistentFileException
@throws FilePermissionsException

@return static
Get a new instance and ensure the file is readable .