TYPO3 CMS  TYPO3_6-2
PropertyError.php
Go to the documentation of this file.
1 <?php
3 
23 
27  protected $message = 'Validation errors for property "%s"';
28 
32  protected $code = 1242859509;
33 
37  protected $propertyName;
38 
42  protected $errors = array();
43 
49  public function __construct($propertyName) {
50  $this->propertyName = $propertyName;
51  $this->message = sprintf($this->message, $propertyName);
52  }
53 
60  public function addErrors($errors) {
61  $this->errors = array_merge($this->errors, $errors);
62  }
63 
69  public function getErrors() {
70  return $this->errors;
71  }
72 
78  public function getPropertyName() {
79  return $this->propertyName;
80  }
81 }