private function merge(DataValidationDefinition $definition, DataValidationDefinition $profileDefinition): void
    {
        foreach ($profileDefinition->getProperties() as $key => $constraints) {
            $parameters = [];
            $parameters[] = $key;
            $parameters = array_merge($parameters, $constraints);

            call_user_func_array([$definition, 'add'], $parameters);
        }
    }
private function merge(DataValidationDefinition $definition, DataValidationDefinition $profileDefinition): void
    {
        foreach ($profileDefinition->getProperties() as $key => $constraints) {
            $parameters = [];
            $parameters[] = $key;
            $parameters = array_merge($parameters, $constraints);

            call_user_func_array([$definition, 'add'], $parameters);
        }
    }
private function merge ( DataValidationDefinition $ definition , DataValidationDefinition $ profileDefinition ) : void { foreach ( $ profileDefinition -> getProperties ( ) as $ key => $ constraints ) { $ parameters = [ ] ; $ parameters [ ] = $ key ; $ parameters = array_merge ( $ parameters , $ constraints ) ; call_user_func_array ( [ $ definition , 'add' ] , $ parameters ) ; } }
merges constraints from the second definition into the first validation definition
merges constraints from the second definition into the first validation definition