Added InvoiceJob
This commit is contained in:
12
application/InvoiceJob/InvoiceJob.php
Normal file
12
application/InvoiceJob/InvoiceJob.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
class InvoiceJob extends mfBaseModel {
|
||||
|
||||
public function getResult($variable) {
|
||||
$result = json_decode($this->result);
|
||||
if(json_last_error() === JSON_ERROR_NONE) {
|
||||
return $result->$variable;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user