ValidationError.php in Backup and Migrate 8.4
File
lib/backup_migrate_core/src/Config/ValidationError.php
View source
<?php
namespace BackupMigrate\Core\Config;
class ValidationError implements ValidationErrorInterface {
protected $field_key = '';
protected $message = '';
protected $replacement = [];
public function __construct($field_key, $message, $replacement = []) {
$this->field_key = $field_key;
$this->message = $message;
$this->replacement = $replacement;
}
public function getMessage() {
return $this->message;
}
public function getReplacement() {
return $this->replacement;
}
public function getFieldKey() {
return $this->field_key;
}
public function __toString() {
return strtr($this
->getMessage(), $this
->getReplacement());
}
}