/** * * @param int $id * @return InvoiceProformaResponse * @throws IfirmaException */ public static function get($id) { $invoice = new InvoiceProformaResponse(); $invoice->disableSendMethod(); ConnectorAbstract::factory($invoice)->receive($id); return $invoice; }
/** * * @param int $id * @return InvoiceProformaResponse * @throws IfirmaException */ public static function get($id) { require_once dirname(__FILE__) . '/InvoiceProformaResponse.php'; $invoice = new InvoiceProformaResponse(); $invoice->disableSendMethod(); ConnectorAbstract::factory($invoice)->receive($id); return $invoice; }