src/Service/Number/Search.php
public function invoke($country = null, $index = 1, $size = 10, $pattern = null, $searchPattern = MatchingStrategy::STARTS_WITH, $features = 'SMS')
    {
        if (!$country) {
            throw new Exception("\$country parameter cannot be blank");
        }

        $size = min($size, 100);

        return new NumberCollection($this->exec([
            // Nexmo API requires $country value to be uppercase.
            'country' => strtoupper($country),
            'index' => $index,
            'size' => $size,
            'pattern' => $pattern,
            'search_pattern' => $searchPattern,
            'features' => $features,
        ]));
    }
public function invoke($country = null, $index = 1, $size = 10, $pattern = null, $searchPattern = MatchingStrategy::STARTS_WITH, $features = 'SMS')
    {
        if (!$country) {
            throw new Exception("\$country parameter cannot be blank");
        }

        $size = min($size, 100);

        return new NumberCollection($this->exec([
            // Nexmo API requires $country value to be uppercase.
            'country' => strtoupper($country),
            'index' => $index,
            'size' => $size,
            'pattern' => $pattern,
            'search_pattern' => $searchPattern,
            'features' => $features,
        ]));
    }
@param int        $index
@param int        $size
@param string|int $pattern
@param int        $searchPattern

@return NumberCollection
@throws Exception