/** * Construct a new base32hex codec. * * @param TransformInterface|null $encodeTransform The encode transform to use. * @param TransformInterface|null $decodeTransform The decode transform to use. */ public function __construct(TransformInterface $encodeTransform = null, TransformInterface $decodeTransform = null) { if (null === $encodeTransform) { $encodeTransform = Base32HexEncodeTransform::instance(); } if (null === $decodeTransform) { $decodeTransform = Base32HexDecodeTransform::instance(); } parent::__construct($encodeTransform, $decodeTransform); }
/** * Create the transform. * * @return TransformInterface The data transform. */ protected function createTransform() { return Base32HexDecodeTransform::instance(); }