mini\Table\Wrappers\OrTable class

Documentation

Applies OR predicates to source table in-memory

Materializes source and yields rows matching any of the predicates.

new OrTable($source, Predicate::eq('x', 1), Predicate::eq('y', 2))

Inheritance

Extends: mini\Table\Wrappers\AbstractTableWrapper

Implements: mini\Table\Contracts\TableInterface Traversable Countable IteratorAggregate mini\Table\Contracts\SetInterface

Properties (5)

private array $predicates
protected mini\Table\AbstractTable $source
protected ?Closure $compareFn
protected ?int $limit
protected int $offset

Methods (39)

Documentation missing

Test if a row matches any predicate

Get all predicates

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Restore absorbed pagination to a replacement table

Documentation missing

Get the source table this wrapper delegates to

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Hook for subclasses to customize clone behavior

Get column name(s) that the row key represents

Documentation missing

Documentation missing

Documentation missing

Get the current table alias (null if not set)

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Get the primary key column definition (cached)

Iterate over rows with visible columns only

Return table with property set

Source

src/Table/Wrappers/OrTable.php:20-165