Returns which validation groups should be used for a certain state of the object.
string[]|string[][]|GroupSequence
public function getGroups(object $object) : array|GroupSequence;