EntityTypeScope
extends BaseScope
in package
Class EntityTypeScope.
Tags
Table of Contents
Properties
- $entities : array<string, string>
- $entityTypeColumn : string
- $table : string
Methods
- __construct() : mixed
- __construct.
- apply() : mixed
- applyQueryBuilder() : void
- getEntities() : mixed
- Get the value of entities.
- getEntityTypeColumn() : mixed
- Get the value of entityColumn.
- getTable() : string
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setEntities() : self
- Set the value of entities.
- setEntityTypeColumn() : self
- Set the value of entityColumn.
- setTable() : self
- alias() : string
- hasColumn() : mixed
Properties
$entities
private
array<string, string>
$entities
$entityTypeColumn
private
string
$entityTypeColumn
= 'item_type'
$table
private
string
$table
Methods
__construct()
__construct.
public
__construct(string $table[, array<string|int, mixed> $entities = [] ]) : mixed
Parameters
- $table : string
- $entities : array<string|int, mixed> = []
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getEntities()
Get the value of entities.
public
getEntities() : mixed
getEntityTypeColumn()
Get the value of entityColumn.
public
getEntityTypeColumn() : mixed
getTable()
public
getTable() : string
Return values
stringlikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetEntities()
Set the value of entities.
public
setEntities(mixed $entities) : self
Parameters
- $entities : mixed
Return values
selfsetEntityTypeColumn()
Set the value of entityColumn.
public
setEntityTypeColumn(mixed $entityColumn) : self
Parameters
- $entityColumn : mixed
Return values
selfsetTable()
public
setTable(string $table) : self
Parameters
- $table : string
Return values
selfalias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string
Return values
stringhasColumn()
private
hasColumn() : mixed