public __construct ( string $query, array $parameters = [], string $resultsQuery = null, array $resultsParameters = [] ) | ||
$query | string | The query to retrieve the data. |
$parameters | array | The parameters to be used inside the query. |
$resultsQuery | string | The optional count query, used to calculate the number of results. |
$resultsParameters | array | The parameters to be used inside the results query. |