The Comparison is the most common AST node in filters.
foo eq "bar"
— translates to a Comparison node with foo
as Attribute Path, eq
as operator and bar
as value.
getAttributePath():
AttributePathReturns the attribute path.
getOperator():
OperatorReturns the operator used in the comparison, can safely be cast to string if you don't with to work with an enum object.
getValue(): bool|string|int|float|null
Returns the value part of the comparison.