Field

Abstract class.

use Saij\WpAppFramework\Query\Field\Field;

A field of a meta class or a column of a table in queries: its methods create conditions, and the query sorts by it. Created by the static methods of a class with #[MetaFields] or #[TableFields]; the subclass matches the type of the field.

A meta value that is not stored counts as the default of its constructor parameter, in conditions and in the sort order. Columns of a table are compared as stored; see the Nullable… field classes for null.

Methods

getClass()

getClass(): string

The class the field belongs to.

Returns class-string

getField()

getField(): string

The name of the field: the name of the constructor parameter.

Returns string