src/Budkit/Helper/Object.php
public function set($property, $value = null, $overwrite = false)
    {

        $previous = isset($this->$property) ? $this->$property : null;

        $this->$property = $value;

        return $previous;
    }
public function set($property, $value = null, $overwrite = false)
    {

        $previous = isset($this->$property) ? $this->$property : null;

        $this->$property = $value;

        return $previous;
    }
public function set ( $ property , $ value = null , $ overwrite = false ) { $ previous = isset ( $ this -> $ property ) ? $ this -> $ property : null ; $ this -> $ property = $ value ; return $ previous ; }
Sets an object property

@param type $property
@param type $value
@return type
Sets an object property