function apply (array $props)
  {
    $this->beingAssigned = $props;
    foreach ($props as $k => $v)
      $this->set ($k, $v);
  }
function apply (array $props)
  {
    $this->beingAssigned = $props;
    foreach ($props as $k => $v)
      $this->set ($k, $v);
  }
function apply ( array $ props ) { $ this -> beingAssigned = $ props ; foreach ( $ props as $ k => $ v ) $ this -> set ( $ k , $ v ) ; }
Mass-assigns a set of properties.

@param array $props
@throws ComponentException
@throws ReflectionPropertyException
Mass - assigns a set of properties .