public static function decode($format, $data, $options = [], $message = null)
    {
        $definition = static::get($format);

        if (empty($definition['decode'])) {
            return $data;
        }
        $handler = $definition['decode'];
        return is_string($handler) ? $handler($data) : $handler($data, $definition + $options, $message);
    }
public static function decode($format, $data, $options = [], $message = null)
    {
        $definition = static::get($format);

        if (empty($definition['decode'])) {
            return $data;
        }
        $handler = $definition['decode'];
        return is_string($handler) ? $handler($data) : $handler($data, $definition + $options, $message);
    }
public static function decode ( $ format , $ data , $ options = [ ] , $ message = null ) { $ definition = static :: get ( $ format ) ; if ( empty ( $ definition [ 'decode' ] ) ) { return $ data ; } $ handler = $ definition [ 'decode' ] ; return is_string ( $ handler ) ? $ handler ( $ data ) : $ handler ( $ data , $ definition + $ options , $ message ) ; }
Decodes data according to the specified format.

@param  string $format  The format into which `$data` will be decoded.
@param  string $data    String data to decode.
@param  array  $options Handler-specific options.
@param  object $message A message reference.
@return mixed           The arbitrary decoded data.
Decodes data according to the specified format .