@@ -42,11 +42,11 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
42
42
/**
43
43
* {{ class }} constructor.
44
44
*
45
- * @param array $modelData
45
+ * @param array $rawModelDataInput
46
46
*
47
47
* @throws {% if generatorConfiguration.collectErrors() %}{{ viewHelper.getSimpleClassName(generatorConfiguration.getErrorRegistryClass()) }}{% else %}ValidationException{% endif %}
48
48
*/
49
- public function __construct(array $modelData = [])
49
+ public function __construct(array $rawModelDataInput = [])
50
50
{
51
51
{% if generatorConfiguration.collectErrors() %}
52
52
$this->_errorRegistry = new {{ viewHelper.getSimpleClassName(generatorConfiguration.getErrorRegistryClass()) }}();
@@ -55,12 +55,12 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
55
55
{{ schemaHookResolver.resolveConstructorBeforeValidationHook() }}
56
56
57
57
{% if schema.getBaseValidators() %}
58
- $this->executeBaseValidators($modelData );
58
+ $this->executeBaseValidators($rawModelDataInput );
59
59
{% endif %}
60
60
61
61
{% foreach schema.getProperties() as property %}
62
62
{% if not property.isInternal() %}
63
- $this->process{{ viewHelper.ucfirst(property.getAttribute()) }}($modelData );
63
+ $this->process{{ viewHelper.ucfirst(property.getAttribute()) }}($rawModelDataInput );
64
64
{% endif %}
65
65
{% endforeach %}
66
66
@@ -70,7 +70,7 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
70
70
}
71
71
{% endif %}
72
72
73
- $this->_rawModelDataInput = $modelData ;
73
+ $this->_rawModelDataInput = $rawModelDataInput ;
74
74
75
75
{{ schemaHookResolver.resolveConstructorAfterValidationHook() }}
76
76
}
0 commit comments