Subquery
class Subquery extends Expression
Methods
__construct(Builder|Builder $query, string $alias = null)
Create new subquery instance.
setQuery(Builder $query)
Set underlying query builder.
Builder
getQuery()
Get underlying query builder.
string
getValue()
Evaluate query as string.
string
getAlias()
Get subquery alias.
$this
setAlias(string $alias)
Set subquery alias.
mixed
__set(string $property, mixed $value)
Pass property calls to the underlying builder.
mixed
__get(string $property)
Pass property calls to the underlying builder.
mixed
__call(string $method, array $params)
Pass method calls to the underlying builder.
Details
at line 29
__construct(Builder|Builder $query, string $alias = null)
Create new subquery instance.
at line 45
setQuery(Builder $query)
Set underlying query builder.
at line 55
Builder
getQuery()
Get underlying query builder.
at line 65
string
getValue()
Evaluate query as string.
at line 83
string
getAlias()
Get subquery alias.
at line 94
$this
setAlias(string $alias)
Set subquery alias.
at line 108
mixed
__set(string $property, mixed $value)
Pass property calls to the underlying builder.
at line 119
mixed
__get(string $property)
Pass property calls to the underlying builder.
at line 131
mixed
__call(string $method, array $params)
Pass method calls to the underlying builder.