5use BadMethodCallException;
38 return $this->
getType() ===
'dir';
48 return $this->
getType() ===
'file';
58 $metadata = $this->filesystem->getMetadata($this->path);
119 public function __call($method, array $arguments)
121 array_unshift($arguments, $this->path);
125 return call_user_func_array($callback, $arguments);
126 }
catch (BadMethodCallException $e) {
127 throw new BadMethodCallException(
128 'Call to undefined method '
$metadata['__DYNAMIC:1__']
An exception for terminatinating execution or to throw for unit testing.
getType()
Retrieve the entree type (file|dir).
__call($method, array $arguments)
Plugins pass-through.
setFilesystem(FilesystemInterface $filesystem)
Set the Filesystem object.
getPath()
Retrieve the entree path.
__construct(FilesystemInterface $filesystem=null, $path=null)
Constructor.
getFilesystem()
Retrieve the Filesystem object.
isDir()
Check whether the entree is a directory.
isFile()
Check whether the entree is a file.
setPath($path)
Set the entree path.