src/Services/WidgetDocumentQuery.php
public function get()
    {
        $result = $this->getDocuments();
        $objDocuments = isset($result->items) ? $result->items : [];
        return [
            'totalCount' => count($objDocuments),
            'matches' => $this->parseDocuments($objDocuments)
        ];
    }
public function get()
    {
        $result = $this->getDocuments();
        $objDocuments = isset($result->items) ? $result->items : [];
        return [
            'totalCount' => count($objDocuments),
            'matches' => $this->parseDocuments($objDocuments)
        ];
    }
Return An array with total documents and matches
@return array