Automattic\WooCommerce\StoreApi\Schemas\V1
ProductBrandSchema::__construct
Constructor.
Метод класса: ProductBrandSchema{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProductBrandSchema = new ProductBrandSchema(); $ProductBrandSchema->__construct( $extend, $controller );
- $extend(ExtendSchema) (обязательный)
- Rest Extending instance.
- $controller(SchemaController) (обязательный)
- Schema Controller instance.
Код ProductBrandSchema::__construct() ProductBrandSchema:: construct WC 10.5.0
public function __construct( ExtendSchema $extend, SchemaController $controller ) {
parent::__construct( $extend, $controller );
$this->image_attachment_schema = $this->controller->get( ImageAttachmentSchema::IDENTIFIER );
}