EntityQueryStubFactory
in package
The EntityQueryStub factory.
Table of Contents
Properties
- $condition : ConditionInterface
- A condition.
- $dbConnection : StubConnection
- A database connection.
- $namespaces : array<string|int, mixed>
- The list of namespaces.
Methods
- __construct() : mixed
- Constructs a QueryStubFactory object.
- get() : QueryInterface
- Instantiates an entity query for a given entity type.
Properties
$condition
A condition.
protected
ConditionInterface
$condition
$dbConnection
A database connection.
protected
StubConnection
$dbConnection
$namespaces
The list of namespaces.
protected
array<string|int, mixed>
$namespaces
Methods
__construct()
Constructs a QueryStubFactory object.
public
__construct() : mixed
get()
Instantiates an entity query for a given entity type.
public
get([EntityTypeInterface $entityType = NULL ][, string $conjunction = 'AND' ][, Closure $executeFunction = NULL ]) : QueryInterface
Parameters
- $entityType : EntityTypeInterface = NULL
-
The entity type definition.
- $conjunction : string = 'AND'
-
The operator to use to combine conditions: 'AND' or 'OR'.
- $executeFunction : Closure = NULL
-
The function to use for
execute
call.
Return values
QueryInterface —An entity query for a specific configuration entity type.