WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\RestApi\Utilities

ImageAttachment::__construct() public WC 1.0

Constructor.

{} It's a method of the class: ImageAttachment{}

No Hooks.

Return

null. Nothing.

Usage

$ImageAttachment = new ImageAttachment();
$ImageAttachment->__construct( $id, $object_id );
$id(int)
Attachment ID.
$object_id(int)
Object ID.

Code of ImageAttachment::__construct() WC 5.7.1

public function __construct( $id = 0, $object_id = 0 ) {
	$this->id        = (int) $id;
	$this->object_id = (int) $object_id;
}