. */ declare(strict_types=1); namespace FireflyIII\Rules; use Illuminate\Contracts\Validation\Rule; /** * Class IsDuplicateTransaction */ class IsDuplicateTransaction implements Rule { private string $value; /** * @inheritDoc */ public function message() { return $this->value; } /** * @inheritDoc */ public function passes($attribute, $value) { $this->value = $value; return false; } }