<?php
/**
 * Variation creation result.
 *
 * @package ScheduledChanges
 */

namespace ScheduledChangesWooCommerce\CoreCompat\WooCommerce\Variations;

/**
 * Identifies the resolved variation and whether this call created it.
 */
final class VariationCreationResult {
	private int $variation_id;
	private bool $created;
	public function __construct( int $variation_id, bool $created ) {
		$this->variation_id = $variation_id;
		$this->created      = $created;
	}

	public function variationId(): int {
		return $this->variation_id;
	}

	public function created(): bool {
		return $this->created;
	}
}
