for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Brouzie\Sphinxy\Query;
class ResultSet extends SimpleResultSet
{
protected $meta;
public function __construct(array $result, array $rawMeta)
parent::__construct($result);
$meta = array();
foreach ($rawMeta as $row) {
$meta[$row['Variable_name']] = $row['Value'];
}
$this->meta = $meta;
public function getMeta()
return $this->meta;
public function getAllowedCount()
return (int)$this->meta['total'];
public function getTotalCount()
return (int)$this->meta['total_found'];