Skip to content

InputValidationAware


  • Full name: \Codefy\Framework\Traits\InputValidationAware

Methods

validateResolved

Validate the class instance.

public validateResolved(): void

Throws:


prepareForValidation

Prepare the data for validation.

protected prepareForValidation(): void

getValidatorInstance

Get the validator instance for the request.

protected getValidatorInstance(): \Qubus\Validation\Validation

Throws:


passedValidation

Handle a passed validation attempt.

protected passedValidation(): void

passesAuthorization

Determine if the request passes the authorization check.

protected passesAuthorization(): bool

failedValidation

Handle a failed validation attempt.

protected failedValidation(?string $message = null, int $code = 422): void

Parameters:

Parameter Type Description
$message ?string
$code int

Throws:


failedAuthorization

protected failedAuthorization(): void

Throws: