src/Service/Account/Numbers.php
public function invoke($index = 1, $size = 10, $pattern = null, $searchPattern = MatchingStrategy::STARTS_WITH)
    {
        $size = min($size, 100);

        return new NumberCollection($this->exec([
            'index'          => $index,
            'size'           => $size,
            'pattern'        => $pattern,
            'search_pattern' => $searchPattern,
        ]));
    }
public function invoke($index = 1, $size = 10, $pattern = null, $searchPattern = MatchingStrategy::STARTS_WITH)
    {
        $size = min($size, 100);

        return new NumberCollection($this->exec([
            'index'          => $index,
            'size'           => $size,
            'pattern'        => $pattern,
            'search_pattern' => $searchPattern,
        ]));
    }
@param int        $index
@param int        $size
@param string|int $pattern
@param int        $searchPattern

@return NumberCollection
@throws Exception