function init (ComponentPropertiesInterface $o)
  {
    foreach ($this->props as $p => $i)
      $o->$p = $i->default;
    return $o;
  }
function init (ComponentPropertiesInterface $o)
  {
    foreach ($this->props as $p => $i)
      $o->$p = $i->default;
    return $o;
  }
function init ( ComponentPropertiesInterface $ o ) { foreach ( $ this -> props as $ p => $ i ) $ o -> $ p = $ i -> default ; return $ o ; }
Initializes the given instance of the target class to the default values set by metadata.

@param ComponentPropertiesInterface $o An instance of the target class.
@return mixed The new instance.
Initializes the given instance of the target class to the default values set by metadata .