src/icepay_api_order.php
public function setPhone($phone) {
        $phone = trim(str_replace('-', '', $phone));

        if (empty($phone))
            throw new Exception('Phone must be set and cannot be empty.');

        $this->phone = $phone;

        return $this;
    }
public function setPhone($phone) {
        $phone = trim(str_replace('-', '', $phone));

        if (empty($phone))
            throw new Exception('Phone must be set and cannot be empty.');

        $this->phone = $phone;

        return $this;
    }
public function setPhone ( $ phone ) { $ phone = trim ( str_replace ( '-' , '' , $ phone ) ) ; if ( empty ( $ phone ) ) throw new Exception ( 'Phone must be set and cannot be empty.' ) ; $ this -> phone = $ phone ; return $ this ; }
Sets the consumer's phonenumber

@since 1.0.0
@param string A string containing the consumer's phonenumber
@return \Icepay_Order_Consumer
@throws Exception when empty
Sets the consumer s phonenumber