public static function createTraceablePDODecorator(
        ContainerInterface $container,
        ?PDO $pdo = null
    ): ?TraceablePDODecorater {
        if ($pdo === null) {
            return null;
        }

        return new TraceablePDODecorater($pdo);
    }
public static function createTraceablePDODecorator(
        ContainerInterface $container,
        ?PDO $pdo = null
    ): ?TraceablePDODecorater {
        if ($pdo === null) {
            return null;
        }

        return new TraceablePDODecorater($pdo);
    }
public static function createTraceablePDODecorator ( ContainerInterface $ container , ? PDO $ pdo = null ) : ? TraceablePDODecorater { if ( $ pdo === null ) { return null ; } return new TraceablePDODecorater ( $ pdo ) ; }
Extend PDO with our TraceablePDODecorater.

@param \Psr\Container\ContainerInterface $container
@param null|\PDO                         $pdo

@return null|\Viserio\Component\Profiler\DataCollector\Bridge\PDO\TraceablePDODecorater
Extend PDO with our TraceablePDODecorater .