src/Encoder/IntegerEncoder.php
public function encodeHexadecimal($integer, $options)
    {
        if ($options['hex.capitalize']) {
            return sprintf('%s0x%X', $this->sign($integer), abs($integer));
        }

        return sprintf('%s0x%x', $this->sign($integer), abs($integer));
    }
public function encodeHexadecimal($integer, $options)
    {
        if ($options['hex.capitalize']) {
            return sprintf('%s0x%X', $this->sign($integer), abs($integer));
        }

        return sprintf('%s0x%x', $this->sign($integer), abs($integer));
    }
public function encodeHexadecimal ( $ integer , $ options ) { if ( $ options [ 'hex.capitalize' ] ) { return sprintf ( '%s0x%X' , $ this -> sign ( $ integer ) , abs ( $ integer ) ) ; } return sprintf ( '%s0x%x' , $ this -> sign ( $ integer ) , abs ( $ integer ) ) ; }
Encodes an integer into hexadecimal representation.
@param int $integer The integer to encode
@param array $options The integer encoding options
@return string The PHP code representation for the integer
Encodes an integer into hexadecimal representation .