public function getRgbHexString()
    {
        $red = dechex($this->getRed());
        if (strlen($red) === 1) {
            $red = '0'.$red;
        }
        $green = dechex($this->getGreen());
        if (strlen($green) === 1) {
            $green = '0'.$green;
        }
        $blue = dechex($this->getBlue());
        if (strlen($blue) === 1) {
            $blue = '0'.$blue;
        }

        return $red.$green.$blue;
    }
public function getRgbHexString()
    {
        $red = dechex($this->getRed());
        if (strlen($red) === 1) {
            $red = '0'.$red;
        }
        $green = dechex($this->getGreen());
        if (strlen($green) === 1) {
            $green = '0'.$green;
        }
        $blue = dechex($this->getBlue());
        if (strlen($blue) === 1) {
            $blue = '0'.$blue;
        }

        return $red.$green.$blue;
    }
public function getRgbHexString ( ) { $ red = dechex ( $ this -> getRed ( ) ) ; if ( strlen ( $ red ) === 1 ) { $ red = '0' . $ red ; } $ green = dechex ( $ this -> getGreen ( ) ) ; if ( strlen ( $ green ) === 1 ) { $ green = '0' . $ green ; } $ blue = dechex ( $ this -> getBlue ( ) ) ; if ( strlen ( $ blue ) === 1 ) { $ blue = '0' . $ blue ; } return $ red . $ green . $ blue ; }
Convert RGB dec to hex as a string.

@return string
Convert RGB dec to hex as a string .