MailPoet\EmailEditor\Validator

Schema::update_schema_property()protectedWC 1.0

Updates the schema property.

Method of the class: Schema{}

No Hooks.

Return

static.

Usage

// protected - for code of main (parent) or child class
$result = $this->update_schema_property( $name, $value );
$name(string) (required)
Property name.
$value(mixed) (required)
Property value.

Schema::update_schema_property() code WC 9.8.1

protected function update_schema_property( string $name, $value ) {
	$clone                  = clone $this;
	$clone->schema[ $name ] = $value;
	return $clone;
}