public function importProperties($data)
    {
        $data->each(function ($value, $key) {
            $key = camel_case($key);

            if (! property_exists($this, $key)) {
                $this->$key = $value;
            }
        });
    }
public function importProperties($data)
    {
        $data->each(function ($value, $key) {
            $key = camel_case($key);

            if (! property_exists($this, $key)) {
                $this->$key = $value;
            }
        });
    }
public function importProperties ( $ data ) { $ data -> each ( function ( $ value , $ key ) { $ key = camel_case ( $ key ) ; if ( ! property_exists ( $ this , $ key ) ) { $ this -> $ key = $ value ; } } ) ; }
Import all collection items to object properties.

@param $data
Import all collection items to object properties .