Automattic\WooCommerce\EmailEditor

Exception::withCodepublicWC 1.0

Method of the class: Exception{}

No Hooks.

Returns

static.

Usage

$Exception = new Exception();
$Exception->withCode( $code );
$code(int) (required)
.

Exception::withCode() code WC 10.5.0

public function withCode(int $code) {
  $this->code = $code;
  return $this;
}