src/DruidFamiliar/QueryGenerator/TimeBoundaryDruidQueryGenerator.php
public function generateQuery(IDruidQueryParameters $params)
    {
        /**
         * @var TimeBoundaryQueryParameters $params
         */
        if ( !$params instanceof TimeBoundaryQueryParameters ) {
            throw new Exception('Expected $params to be instanceof TimeBoundaryQueryParameters');
        }

        $params->validate();

        $responseObj = array(
            'queryType' => 'timeBoundary',
            "dataSource" => $params->dataSource
        );

        $responseString = json_encode( $responseObj );

        return $responseString;
    }
public function generateQuery(IDruidQueryParameters $params)
    {
        /**
         * @var TimeBoundaryQueryParameters $params
         */
        if ( !$params instanceof TimeBoundaryQueryParameters ) {
            throw new Exception('Expected $params to be instanceof TimeBoundaryQueryParameters');
        }

        $params->validate();

        $responseObj = array(
            'queryType' => 'timeBoundary',
            "dataSource" => $params->dataSource
        );

        $responseString = json_encode( $responseObj );

        return $responseString;
    }
Take parameters and return a valid Druid Query.
@param IDruidQueryParameters $params

@param TimeBoundaryQueryParameters $params
@return string Query payload in JSON