Automattic\WooCommerce\Blocks\StoreApi\Schemas
ProductReviewSchema::__construct() public WC 1.0
Constructor.
{} It's a method of the class: ProductReviewSchema{}
No Hooks.
Return
Null. Nothing.
Usage
$ProductReviewSchema = new ProductReviewSchema(); $ProductReviewSchema->__construct( $extend, $image_attachment_schema );
- $extend(ExtendRestApi) (required)
- Rest Extending instance.
- $image_attachment_schema(ImageAttachmentSchema) (required)
- Image attachment schema instance.
Code of ProductReviewSchema::__construct() ProductReviewSchema:: construct WC 5.0.0
public function __construct( ExtendRestApi $extend, ImageAttachmentSchema $image_attachment_schema ) {
$this->image_attachment_schema = $image_attachment_schema;
parent::__construct( $extend );
}