PHP Class Sleimanx2\Plastic\Map\Builder

Afficher le fichier Open project: sleimanx2/plastic

Protected Properties

Свойство Type Description
$connection Sleimanx2\Plastic\Connection Plastic connection instance.
$grammar Grammar Map grammar instance.
$resolver Closure Blueprint resolver callback.

Méthodes publiques

Méthode Description
__construct ( Connection $connection ) 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.

Méthodes protégées

Méthode Description
build ( Blueprint $blueprint ) Execute the blueprint to build.
createBlueprint ( string $type, Closure $callback = null, null $index = null ) : mixed | Blueprint Create a new command set with a Closure.

Method Details

__construct() public méthode

Schema constructor.
public __construct ( Connection $connection )
$connection Sleimanx2\Plastic\Connection

blueprintResolver() public méthode

Set the Schema Blueprint resolver callback.
public blueprintResolver ( Closure $resolver ) : void
$resolver Closure
Résultat void

build() protected méthode

Execute the blueprint to build.
protected build ( Blueprint $blueprint )
$blueprint Blueprint

create() public méthode

Create a map on your elasticsearch index.
public create ( string $type, Closure $callback, string $index = null )
$type string
$callback Closure
$index string

createBlueprint() protected méthode

Create a new command set with a Closure.
protected createBlueprint ( string $type, Closure $callback = null, null $index = null ) : mixed | Blueprint
$type string
$callback Closure
$index null
Résultat mixed | Blueprint

Property Details

$connection protected_oe property

Plastic connection instance.
protected Connection,Sleimanx2\Plastic $connection
Résultat Sleimanx2\Plastic\Connection

$grammar protected_oe property

Map grammar instance.
protected Grammar,Sleimanx2\Plastic\Map $grammar
Résultat Grammar

$resolver protected_oe property

Blueprint resolver callback.
protected Closure $resolver
Résultat Closure