TYPO3 CMS  TYPO3_6-2
MappingResults.php
Go to the documentation of this file.
1 <?php
3 
22 
26  protected $errors = array();
27 
31  protected $warnings = array();
32 
40  public function addError(\TYPO3\CMS\Extbase\Error\Error $error, $propertyName) {
41  $this->errors[$propertyName] = $error;
42  }
43 
49  public function getErrors() {
50  return $this->errors;
51  }
52 
58  public function hasErrors() {
59  return count($this->errors) > 0;
60  }
61 
69  public function addWarning($warning, $propertyName) {
70  $this->warnings[$propertyName] = $warning;
71  }
72 
78  public function getWarnings() {
79  return $this->warnings;
80  }
81 
87  public function hasWarnings() {
88  return count($this->warnings) > 0;
89  }
90 }
addError(\TYPO3\CMS\Extbase\Error\Error $error, $propertyName)