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