function set ($propName, $value)
  {
    $this->ensurePropertyExists ($propName);
    $this->$propName = $this->typecastPropertyValue ($propName, $value);

    if ($this->isModified ($propName))
      $this->onPropertyChange ($propName);
  }
function set ($propName, $value)
  {
    $this->ensurePropertyExists ($propName);
    $this->$propName = $this->typecastPropertyValue ($propName, $value);

    if ($this->isModified ($propName))
      $this->onPropertyChange ($propName);
  }
function set ( $ propName , $ value ) { $ this -> ensurePropertyExists ( $ propName ) ; $ this -> $ propName = $ this -> typecastPropertyValue ( $ propName , $ value ) ; if ( $ this -> isModified ( $ propName ) ) $ this -> onPropertyChange ( $ propName ) ; }
Validates, typecasts and assigns a value to a property.

@param string $propName
@param mixed  $value
@throws ComponentException
@throws ReflectionPropertyException
Validates typecasts and assigns a value to a property .