Automattic\WooCommerce\StoreApi\Schemas\V1
AbstractAddressSchema::__construct()
Constructor.
Method of the class: AbstractAddressSchema{}
No Hooks.
Return
null
. Nothing (null).
Usage
$AbstractAddressSchema = new AbstractAddressSchema(); $AbstractAddressSchema->__construct( $extend, $controller );
- $extend(ExtendSchema) (required)
- ExtendSchema instance.
- $controller(SchemaController) (required)
- Schema Controller instance.
AbstractAddressSchema::__construct() AbstractAddressSchema:: construct code WC 9.3.1
public function __construct( ExtendSchema $extend, SchemaController $controller ) { parent::__construct( $extend, $controller ); $this->additional_fields_controller = Package::container()->get( CheckoutFields::class ); }