public function hasFileError($error) { switch ($error) { case 1: case 2: $this->serviceLocator->getErrorHandler()->addError("File is too big"); break; case 0: case 4: break; default: $this->serviceLocator->getErrorHandler()->addError("There was a problem with your file"); } }