HashCondition
in package
implements
ConditionInterface
Condition based on column-value pairs.
Tags
Table of Contents
Interfaces
- ConditionInterface
- Interface ConditionInterface should be implemented by classes that represent a condition in DBAL of framework.
Properties
- $hash : array<string|int, mixed>|null
Methods
- __construct() : mixed
- HashCondition constructor.
- fromArrayDefinition() : $this
- Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
- getHash() : array<string|int, mixed>|null
Properties
$hash
private
array<string|int, mixed>|null
$hash
the condition specification.
Methods
__construct()
HashCondition constructor.
public
__construct(array<string|int, mixed>|null $hash) : mixed
Parameters
- $hash : array<string|int, mixed>|null
fromArrayDefinition()
Creates object by array-definition as described in [Query Builder – Operator format](guide:db-query-builder#operator-format) guide article.
public
static fromArrayDefinition(mixed $operator, mixed $operands) : $this
Parameters
- $operator : mixed
-
operator in uppercase.
- $operands : mixed
-
array of corresponding operands
Return values
$thisgetHash()
public
getHash() : array<string|int, mixed>|null