Logic uses ConstantsTrait
Table of Contents
Constants
Methods
- normalize() : string
- Normalize a logical operator.
Constants
AND
public
string
AND
= '&&'
NOT
public
string
NOT
= '!'
OR
public
string
OR
= '||'
Methods
normalize()
Normalize a logical operator.
public
static normalize(string|null $operator) : string
Returns the operator if it's supported (AND, OR), otherwise defaults to AND.
Parameters
- $operator : string|null