Returns an array of group names.
null|string|string[] $groups The groups to resolve. If a single string is: passed, it is converted to an array. If null is passed, an array containing the current group of the context is returned.
array An array of validation groups.
private function resolveGroups($groups) {
return $groups ? (array) $groups : (array) $this->group;
}