src/Service/Account/Pricing/Phone.php
public function invoke($product = null, $phone = null)
    {
        if (!$product) {
            throw new Exception('$product parameter cannot be blank');
        }
        if (!in_array($product, ['sms', 'voice'], true)) {
            throw new Exception('$product parameter must be "sms" or "voice"');
        }
        if (!$phone) {
            throw new Exception('$phone parameter cannot be blank');
        }
        $this->product = $product;
        return new Entity\PricingPhone($this->exec([
            'phone' => $phone,
        ]));
    }
public function invoke($product = null, $phone = null)
    {
        if (!$product) {
            throw new Exception('$product parameter cannot be blank');
        }
        if (!in_array($product, ['sms', 'voice'], true)) {
            throw new Exception('$product parameter must be "sms" or "voice"');
        }
        if (!$phone) {
            throw new Exception('$phone parameter cannot be blank');
        }
        $this->product = $product;
        return new Entity\PricingPhone($this->exec([
            'phone' => $phone,
        ]));
    }
@param string $product
@param string $phone

@return Entity\PricingPhone
@throws Exception