NullableEnumField
Class. It extends EnumField.
A nullable backed enum column of a table (?Level). notEquals() and notIn() also match rows whose column is
null, like null !== $value in PHP.
Constructor
Methods
equals()
Matches the case $case. Throws an InvalidArgumentException if $case is a case of another enum.
Returns Condition
getClass()
The class the field belongs to.
Returns class-string
getField()
The name of the field: the name of the constructor parameter.
Returns string
in()
Matches one of the cases $cases. Throws an InvalidArgumentException if no case or a case of another enum is given.
Returns Condition
isNotNull()
Rows whose column is not null.
Returns Condition
isNull()
Rows whose column is null.
Returns Condition
notEquals()
Matches every case but $case. On a nullable column, rows whose column is null match as well. Throws an InvalidArgumentException if $case is a case of another enum.
Returns Condition
notIn()
Matches none of the cases $cases. On a nullable column, rows whose column is null match as well. Throws an InvalidArgumentException if no case or a case of another enum is given.
Returns Condition