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