PHP 클래스 Sleimanx2\Plastic\Map\Builder

파일 보기 프로젝트 열기: sleimanx2/plastic

보호된 프로퍼티들

프로퍼티 타입 설명
$connection Sleimanx2\Plastic\Connection Plastic connection instance.
$grammar Grammar Map grammar instance.
$resolver Closure Blueprint resolver callback.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

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

blueprintResolver() 공개 메소드

Set the Schema Blueprint resolver callback.
public blueprintResolver ( Closure $resolver ) : void
$resolver Closure
리턴 void

build() 보호된 메소드

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

create() 공개 메소드

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

createBlueprint() 보호된 메소드

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
리턴 mixed | Blueprint

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

Plastic connection instance.
protected Connection,Sleimanx2\Plastic $connection
리턴 Sleimanx2\Plastic\Connection

$grammar 보호되어 있는 프로퍼티

Map grammar instance.
protected Grammar,Sleimanx2\Plastic\Map $grammar
리턴 Grammar

$resolver 보호되어 있는 프로퍼티

Blueprint resolver callback.
protected Closure $resolver
리턴 Closure