5use InvalidArgumentException;
16 return 'getWithMetadata';
31 $object = $this->filesystem->getMetadata(
$path);
40 if ( ! method_exists($this->filesystem, $method =
'get' . ucfirst(
$key))) {
41 throw new InvalidArgumentException(
'Could not fetch metadata: ' .
$key);
44 $object[
$key] = $this->filesystem->{$method}(
$path);
$metadata['__DYNAMIC:1__']
An exception for terminatinating execution or to throw for unit testing.