protected function addData($key, $data = null)
    {
        $this->data[self::RS_KEY_DATA]->{$key} = $data;
    }
protected function addData($key, $data = null)
    {
        $this->data[self::RS_KEY_DATA]->{$key} = $data;
    }
protected function addData ( $ key , $ data = null ) { $ this -> data [ self :: RS_KEY_DATA ] -> { $ key } = $ data ; }
Add data to result object

@param string $key
@param null|string|array|\stdClass $data
Add data to result object