lib/Elastica/QueryBuilder/DSL/Query.php
public function span_near(array $clauses = [], int $slop = 1, bool $inOrder = false): SpanNear
    {
        return new SpanNear($clauses, $slop, $inOrder);
    }
public function span_near(array $clauses = [], int $slop = 1, bool $inOrder = false): SpanNear
    {
        return new SpanNear($clauses, $slop, $inOrder);
    }
public function span_near ( array $ clauses = [ ] , int $ slop = 1 , bool $ inOrder = false ) : SpanNear { return new SpanNear ( $ clauses , $ slop , $ inOrder ) ; }
span near query.

@param array $clauses
@param int   $slop
@param bool  $inOrder

@return SpanNear

@see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-span-near-query.html
span near query .