Configuration > Sales > Fraud Detection > Signifyd > Debug) */ class DebuggerFactory { /** * @var ObjectManagerInterface */ private $objectManager; /** * @var Config */ private $config; /** * DebuggerFactory constructor. * * @param ObjectManagerInterface $objectManager * @param Config $config */ public function __construct( ObjectManagerInterface $objectManager, Config $config ) { $this->objectManager = $objectManager; $this->config = $config; } /** * Create debugger instance * * @param int|null $storeId * @return DebuggerInterface */ public function create($storeId = null): DebuggerInterface { if (!$this->config->isDebugModeEnabled($storeId)) { return $this->objectManager->get(BlackHole::class); } return $this->objectManager->get(Log::class); } }