public function build(Connection $connection, Grammar $grammar)
{
$statement = ['index' => $this->index, 'type' => $this->type, 'body' => [$this->type => ['_source' => ['enabled' => true], 'properties' => $this->toDSL($grammar)]]];
return $connection->mapStatement($statement);
}
/** * Execute the blueprint to build. * * @param Blueprint $blueprint */ protected function build(Blueprint $blueprint) { $blueprint->build($this->connection, $this->grammar); }