src/Synapse/Stdlib/DataObject.php
protected function getSetter($key)
    {
        $key = str_replace('_', ' ', $key);
        $key = ucwords($key);
        $key = str_replace(' ', '', $key);

        return 'set'.$key;
    }
protected function getSetter($key)
    {
        $key = str_replace('_', ' ', $key);
        $key = ucwords($key);
        $key = str_replace(' ', '', $key);

        return 'set'.$key;
    }
protected function getSetter ( $ key ) { $ key = str_replace ( '_' , ' ' , $ key ) ; $ key = ucwords ( $ key ) ; $ key = str_replace ( ' ' , '' , $ key ) ; return 'set' . $ key ; }
Return the method name for the setter of a given variable

Example: Converts 'user_id' to 'setUserId'

@param  string $key Key of the variable in $this->object
@return string
Return the method name for the setter of a given variable