Property | Type | Description | |
---|---|---|---|
$connection | Plastic connection instance. | ||
$grammar | Map grammar instance. | ||
$resolver | Closure | Blueprint resolver callback. |
Method | Description | |
---|---|---|
__construct ( |
Schema constructor. | |
blueprintResolver ( Closure $resolver ) : void | Set the Schema Blueprint resolver callback. | |
create ( string $type, Closure $callback, string $index = null ) | Create a map on your elasticsearch index. |
Method | Description | |
---|---|---|
build ( |
Execute the blueprint to build. | |
createBlueprint ( string $type, Closure $callback = null, null $index = null ) : mixed | |
Create a new command set with a Closure. |
public __construct ( |
||
$connection |
public blueprintResolver ( Closure $resolver ) : void | ||
$resolver | Closure | |
return | void |
protected build ( |
||
$blueprint |
protected Connection,Sleimanx2\Plastic $connection | ||
return |
protected Grammar,Sleimanx2\Plastic\Map $grammar | ||
return |
protected Closure $resolver | ||
return | Closure |