Zum Inhalt springen

API reference / Quittio \ Core \ Validation

Messages

final class in quittio/core

Quittio\Core\Validation\Messages · Source

Creates validation messages from the message catalog.

The catalog key is "{namespace}::rules.{code}" with the entries "message" and "hint". If no translation exists, the fallback text given by the rule is used.

Methods#

MethodDescription
::make()

make()#

public static function make(
    ValidationContext $context,
    Severity $severity,
    string $code,
    ValidationLevel $level,
    string $fallback,
    array<string, string|int> $replace = [],
    ?string $bt = null,
    ?string $path = null,
    string $namespace = 'quittio',
): ValidationMessage

static

ParameterTypeDescription
$contextValidationContext
$severitySeverity
$codestring
$levelValidationLevel
$fallbackstring
$replacearray<string, string|int> = []
$bt?string = null
$path?string = null
$namespacestring = 'quittio'
Returns
ValidationMessage

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.