Elastica\QueryBuilder::__construct PHP Method

__construct() public method

Constructor.
public __construct ( Version $version = null )
$version Elastica\QueryBuilder\Version
    public function __construct(Version $version = null)
    {
        $this->_version = $version ?: new Version\Latest();
        $this->addDSL(new DSL\Query());
        $this->addDSL(new DSL\Aggregation());
        $this->addDSL(new DSL\Suggest());
    }