. */ namespace App\Validator; interface UniqueValidatableInterface { /** * This method should return an array of fields that should be used to compare the objects for the UniqueObjectCollection constraint. * All instances of the same class should return the same fields. * The value must be a comparable value (e.g. string, int, float, bool, null). * @return array An array of the form ['field1' => 'value1', 'field2' => 'value2', ...] */ public function getComparableFields(): array; }