<?php
namespace Automattic\WooCommerce\Blocks\Integrations;
class IntegrationRegistry {
protected $registry_identifier = '';
protected $registered_integrations = [];
public function initialize( $registry_identifier = '' ) {
if ( $registry_identifier ) {
$this->registry_identifier = $registry_identifier;
}
if ( empty( $this->registry_identifier ) ) {
_doing_it_wrong( __METHOD__, esc_html__( 'Integration registry requires an identifier.', 'woocommerce' ), '4.6.0' );
return false;
}