You are here

public function InvoiceRestModel::exchangeArray in Invoice 7

Exchanges the specified data array

Parameters

array $data:

File

./invoice_classes.inc, line 45

Class

InvoiceRestModel
REST invoice model that is used for binding request data and returning the entity result

Code

public function exchangeArray($data) {
  $properties = get_object_vars($this);
  foreach ($properties as $property => $value) {
    if (isset($data[$property])) {
      $this->{$property} = $data[$property];
    }
  }
}