TypeViolation
in package
implements
IConstraintViolation, Stringable
Read onlyYes
FinalYes
Table of Contents
Interfaces
- IConstraintViolation
- Stringable
Properties
- $message : string
- $model : IModel|INotNullConstraint
Methods
- __construct() : mixed
- __toString() : string
- getCode() : ConstraintViolationCode
- getConstraint() : IConstraint
- getMessage() : string
Properties
$message
public
string
$message
= 'Type not allowed.'
$model
public
IModel|INotNullConstraint
$model
Methods
__construct()
public
__construct(IModel|INotNullConstraint $model[, string $message = 'Type not allowed.' ]) : mixed
Parameters
- $model : IModel|INotNullConstraint
- $message : string = 'Type not allowed.'
__toString()
public
__toString() : string
Attributes
- #[Override]
Return values
stringgetCode()
public
getCode() : ConstraintViolationCode
Return values
ConstraintViolationCodegetConstraint()
public
getConstraint() : IConstraint
Return values
IConstraintgetMessage()
public
getMessage() : string