Sleimanx2\Plastic\Map\Grammar::compileDate PHP Method

compileDate() public method

Compile a date map.
public compileDate ( Illuminate\Support\Fluent $fluent ) : array
$fluent Illuminate\Support\Fluent
return array
    public function compileDate(Fluent $fluent)
    {
        $map = ['type' => 'date', 'boost' => $fluent->boost, 'doc_values' => $fluent->doc_values, 'format' => $fluent->format, 'ignore_malformed' => $fluent->ignore_malformed, 'include_in_all' => $fluent->include_in_all, 'index' => $fluent->index, 'null_value' => $fluent->null_value, 'precision_step' => $fluent->precision_step, 'store' => $fluent->store];
        return $this->formatMap($map);
    }