Skip to content

Commit dcbf699

Browse files
committed
Change visibility of private members to protected to gain access from classes using inheritance
1 parent fc2c898 commit dcbf699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Templates/Model.phptpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
3232
{% if property.isInternal() %}private{% else %}protected{% endif %} ${{ property.getAttribute() }}{% if not viewHelper.isNull(property.getDefaultValue()) %} = {{ property.getDefaultValue() }}{% endif %};
3333
{% endforeach %}
3434
/** @var array */
35-
private $_rawModelDataInput = [];
35+
protected $_rawModelDataInput = [];
3636

3737
{% if generatorConfiguration.collectErrors() %}
3838
/** @var {{ viewHelper.getSimpleClassName(generatorConfiguration.getErrorRegistryClass()) }} Collect all validation errors */
39-
private $_errorRegistry;
39+
protected $_errorRegistry;
4040
{% endif %}
4141

4242
/**
@@ -76,7 +76,7 @@ class {{ class }} {% if schema.getInterfaces() %}implements {{ viewHelper.joinCl
7676
}
7777

7878
{% if schema.getBaseValidators() %}
79-
private function executeBaseValidators(array &$modelData): void
79+
protected function executeBaseValidators(array &$modelData): void
8080
{
8181
$value = &$modelData;
8282

0 commit comments

Comments
 (0)