Exemple #1
0
 /**
  * Dynamically set attributes on the model.
  *
  * @param  string  $key
  * @param  mixed  $value
  * @return void
  */
 public function __set($key, $value)
 {
     if ($key === 'classTax' || $key === 'class_tax' || $key === 'class_tax_111') {
         $this->classTax = $value;
     }
     parent::setAttribute($key, $value);
 }
Exemple #2
0
 /**
  * Dynamically set attributes on the model.
  *
  * @param  string  $key
  * @param  mixed  $value
  * @return void
  */
 public function __set($key, $value)
 {
     if ($key === 'taxAmount' || $key === 'tax_amount' || $key === 'tax_amount_111') {
         $this->taxAmount = $value;
     }
     if ($key === 'total' || $key === 'total_111') {
         $this->total = $value;
     }
     parent::setAttribute($key, $value);
 }