<?php  namespace App\Rules;  use App\Models\Product; use Illuminate\Contracts\Validation\Rule;  class CheckIfProductHasVariants implements Rule { 	private string $errorMessage = '';  	/** 	 * Create a new rule instance. 	 */ 	private ?Product $product = null;  	public function __construct(?string $product_id = null, private ?string $variant_id = null){}  	public function __toString(): string{}  	/** 	 * Determine if the validation rule passes. 	 * 	 * @param string $attribute 	 */ 	public function passes($attribute, $value): bool{}  	/** 	 * Get the validation error message. 	 */ 	public function message(): string|array{} }