src/Versatile/Search/FlatCriteriaBuilder.php
public function criteria($modelClass, array $parameters, $contentType='text/html')
    {

        if ($this->hasHandler($contentType)) {
            return $this->callHandler($modelClass, $parameters, $contentType);
        }

        return $this->buildCriteria($modelClass, $parameters);

    }
public function criteria($modelClass, array $parameters, $contentType='text/html')
    {

        if ($this->hasHandler($contentType)) {
            return $this->callHandler($modelClass, $parameters, $contentType);
        }

        return $this->buildCriteria($modelClass, $parameters);

    }
{@inheritdoc}

@param string $modelClass
@param array $parameters
@param string $contentType (optional)
@return \Versatile\Search\Contracts\Criteria