public function checkReadable() { if (!$this->hasReadAccess()) { throw new AccessDeniedException(sprintf('The file %s is not readable', $this->file)); } }
public function checkWillSucceed() { $this->fromFile->checkReadable(); $this->toFile->checkWritable(); }