19 declare(strict_types=1);
39 private readonly
Closure $content,
46 return UploadHandlerInterface::DEFAULT_FILE_ID_PARAMETER;
51 return $this->
to(
'upload');
56 return $this->
to(
'rm');
61 return $this->
to(
'info');
74 ($this->txt)(
'updated_document'),
77 ))->except(fn() =>
new Ok(null))->value();
85 private function to(
string $cmd): string
87 return ($this->
link)($cmd);
getInfoForExistingFiles(array $file_ids)
__construct(private readonly Closure $link, private readonly Closure $content, private readonly Closure $txt)
getFileIdentifierParameterName()
A result encapsulates a value or an error and simplifies the handling of those.
Interface FileInfoResult.
getInfoResult(string $identifier)
link(string $caption, string $href, bool $new_viewport=false)
Class BasicFileInfoResult.