src/Modelling/ModelState.php
final public function importData($data)
    {
        foreach ($data as $property => $value) {
            if ($this[$property] instanceof ModelState){
                $this[$property]->importData($value);
            } else {
                $this[$property] = $value;
            }
        }
    }
final public function importData($data)
    {
        foreach ($data as $property => $value) {
            if ($this[$property] instanceof ModelState){
                $this[$property]->importData($value);
            } else {
                $this[$property] = $value;
            }
        }
    }
final public function importData ( $ data ) { foreach ( $ data as $ property => $ value ) { if ( $ this [ $ property ] instanceof ModelState ) { $ this [ $ property ] -> importData ( $ value ) ; } else { $ this [ $ property ] = $ value ; } } }
Imports an array of model values that have been marked safe for public consumption.

@param array $data
Imports an array of model values that have been marked safe for public consumption .