classes/phing/system/util/Properties.php
public function setProperty($key, $value)
    {
        $oldValue = null;
        if (isset($this->properties[$key])) {
            $oldValue = $this->properties[$key];
        }
        $this->properties[$key] = $value;

        return $oldValue;
    }
public function setProperty($key, $value)
    {
        $oldValue = null;
        if (isset($this->properties[$key])) {
            $oldValue = $this->properties[$key];
        }
        $this->properties[$key] = $value;

        return $oldValue;
    }
public function setProperty ( $ key , $ value ) { $ oldValue = null ; if ( isset ( $ this -> properties [ $ key ] ) ) { $ oldValue = $ this -> properties [ $ key ] ; } $ this -> properties [ $ key ] = $ value ; return $ oldValue ; }
Set the value for a property.

@param  string $key
@param  mixed $value
@return mixed  Old property value or null if none was set.
Set the value for a property .