JamesMoss\Flywheel\Result::__construct PHP Method

__construct() public method

Constructor
public __construct ( array $documents, integer $total )
$documents array An array of Documents
$total integer If this result only represents a small slice of the total (when using limit), this parameter represents the total number of documents.
    public function __construct($documents, $total)
    {
        $this->documents = array_values($documents);
        $this->total = $total;
    }