@@ 179-185 (lines=7) @@ | ||
176 | * |
|
177 | * @return void |
|
178 | */ |
|
179 | private function handleInvalidMandatoryColumn() |
|
180 | { |
|
181 | $errorMessage = $this->schemaColumn->name . " on row $this->rowNumber is missing."; |
|
182 | $this->setError(Analyse::ERROR_REQUIRED_FIELD_MISSING_DATA, $errorMessage); |
|
183 | $this->setErrorRowStatistic($this->rowNumber); |
|
184 | $this->valid = false; |
|
185 | } |
|
186 | ||
187 | ||
188 | /** |
|
@@ 214-221 (lines=8) @@ | ||
211 | * |
|
212 | * @return void |
|
213 | */ |
|
214 | private function handleInvalidFormat() |
|
215 | { |
|
216 | $errorMessage = "The data in column " . $this->schemaColumn->name ." on row $this->rowNumber doesn't "; |
|
217 | $errorMessage .= "match the required format of $this->format."; |
|
218 | $this->setError(self::ERROR_INVALID_FORMAT, $errorMessage); |
|
219 | $this->setErrorRowStatistic($this->rowNumber); |
|
220 | $this->valid = false; |
|
221 | } |
|
222 | ||
223 | ||
224 | /** |
|
@@ 267-274 (lines=8) @@ | ||
264 | * |
|
265 | * @return void |
|
266 | */ |
|
267 | private function handleInvalidPattern() |
|
268 | { |
|
269 | $errorMessage = "The data in column " . $this->schemaColumn->name . " on row $this->rowNumber doesn't "; |
|
270 | $errorMessage .= "match the required pattern of $this->pattern."; |
|
271 | $this->setError(self::ERROR_INVALID_PATTERN, $errorMessage); |
|
272 | $this->setErrorRowStatistic($this->rowNumber); |
|
273 | $this->valid = false; |
|
274 | } |
|
275 | ||
276 | ||
277 | /** |