Hi Chatex,

the method comes from the WooCommerce API wrapper. You can find the code here: https://github.com/woocommerce/wc-api-php

Best,
Florian