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