class ValidationError in Backup and Migrate 8.4
Class ValidationError.
@package BackupMigrate\Core\Config
Hierarchy
- class \BackupMigrate\Core\Config\ValidationError implements ValidationErrorInterface
Expanded class hierarchy of ValidationError
1 file declares its use of ValidationError
- FileNamer.php in lib/
backup_migrate_core/ src/ Filter/ FileNamer.php
File
- lib/
backup_migrate_core/ src/ Config/ ValidationError.php, line 10
Namespace
BackupMigrate\Core\ConfigView source
class ValidationError implements ValidationErrorInterface {
/**
* @var string
*/
protected $field_key = '';
/**
* @var string
*/
protected $message = '';
/**
* @var array
*/
protected $replacement = [];
/**
* @param $field_key
* @param $message
* @param array $replacement
*/
public function __construct($field_key, $message, $replacement = []) {
$this->field_key = $field_key;
$this->message = $message;
$this->replacement = $replacement;
}
/**
* @return string
*/
public function getMessage() {
return $this->message;
}
/**
* @return array
*/
public function getReplacement() {
return $this->replacement;
}
/**
* @return string
*/
public function getFieldKey() {
return $this->field_key;
}
/**
* String representation of the exception.
*
* @return string the string representation of the exception.
*/
public function __toString() {
return strtr($this
->getMessage(), $this
->getReplacement());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ValidationError:: |
protected | property | ||
ValidationError:: |
protected | property | ||
ValidationError:: |
protected | property | ||
ValidationError:: |
public | function |
Overrides ValidationErrorInterface:: |
|
ValidationError:: |
public | function |
Overrides ValidationErrorInterface:: |
|
ValidationError:: |
public | function |
Overrides ValidationErrorInterface:: |
|
ValidationError:: |
public | function | ||
ValidationError:: |
public | function | String representation of the exception. |