protected function constrainSingleFile() { if ($this->getCommand()->getFileCount() > 1) { throw new \Exception('This operation can only process single files'); } }