CustomerNumberSearchResult example

public function search(Criteria $criteria)
    {
        $query = $this->buildQuery($criteria);

        $customers = $this->fetchCustomers($criteria$query);

        $total = \count($customers);
        if ($criteria->fetchCount()) {
            $total = $this->fetchTotal($query);
        }

        return new CustomerNumberSearchResult(
            $this->hydrate($customers),
            (int) $total
        );
    }

    /** * @param array[] $result * * @return array */
    private function hydrate(array $result)
    {
Home | Imprint | This part of the site doesn't use cookies.