public function setProperties($properties){
    // Update object with incoming values, if any
    if(!empty($properties)){
      foreach($properties as $key => $val){
        $this->$key = $val;
      }
    }
  }
public function setProperties($properties){
    // Update object with incoming values, if any
    if(!empty($properties)){
      foreach($properties as $key => $val){
        $this->$key = $val;
      }
    }
  }
public function setProperties ( $ properties ) { // Update object with incoming values, if any if ( ! empty ( $ properties ) ) { foreach ( $ properties as $ key => $ val ) { $ this -> $ key = $ val ; } } }
Set object properties

@Param   Array   $properties   Properties to set
@Return  Void
Set object properties