41 $conf = $this->typeConfigs[$type] ?? null;
42 if ( $conf ===
null ) {
46 $class = $conf[
'class'] ??
null;
47 if ( $class ===
'PoolCounter_Client' ) {
50 $class = PoolCounterClient::class;
53 $poolCounter =
new $class( $conf, $type, $key );
54 $poolCounter->setLogger( $this->logger );
57 if ( $poolCounter instanceof PoolCounterClient ) {
58 $poolCounter->setManager( $this->getClientManager() );