22class Data_Test {
33use \PHPDataGen \DataClassTrait;
44private $ A = null ;
5- private $ A1 = null ;
5+ private $ A1 = '' ;
66private $ A2 = null ;
77private $ A3 = null ;
8- private $ A4 = null ;
9- private $ A5 = null ;
8+ private $ A4 = '' ;
9+ private $ A5 = '' ;
1010private $ B = null ;
11- private $ B1 = null ;
11+ private $ B1 = '' ;
1212private $ B2 = null ;
1313private $ B3 = null ;
14- private $ B4 = null ;
15- private $ B5 = null ;
14+ private $ B4 = '' ;
15+ private $ B5 = '' ;
1616protected $ C = null ;
17- protected $ C1 = null ;
17+ protected $ C1 = '' ;
1818protected $ C2 = null ;
1919protected $ C3 = null ;
20- protected $ C4 = null ;
21- protected $ C5 = null ;
20+ protected $ C4 = '' ;
21+ protected $ C5 = '' ;
2222protected $ D = null ;
23- protected $ D1 = null ;
23+ protected $ D1 = '' ;
2424protected $ D2 = null ;
2525protected $ D3 = null ;
26- protected $ D4 = null ;
27- protected $ D5 = null ;
26+ protected $ D4 = '' ;
27+ protected $ D5 = '' ;
2828public function __construct (array $ init = []) {
2929$ this ->A2 = $ this ->validate_A2 ("Foo " );
3030$ this ->A3 = "Fee " ;
@@ -48,86 +48,98 @@ public function __construct(array $init = []) {
4848}
4949}
5050public function get_A () { return $ this ->A ; }
51+ protected function validate_A ($ value ) { return $ value ; }
5152public function get_A1 () { return $ this ->A1 ; }
5253protected function validate_A1 ($ value ) {
53- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field A1 has type string ' ); }
54+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field A1 has type string ' ); }
5455return $ value ;
5556}
5657public function get_A2 () { return $ this ->A2 ; }
58+ protected function validate_A2 ($ value ) { return $ value ; }
5759public function get_A3 () { return $ this ->A3 ; }
60+ protected function validate_A3 ($ value ) { return $ value ; }
5861public function get_A4 () { return $ this ->A4 ; }
5962protected function validate_A4 ($ value ) {
60- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field A4 has type string ' ); }
63+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field A4 has type string ' ); }
6164return $ value ;
6265}
6366public function get_A5 () { return $ this ->A5 ; }
6467protected function validate_A5 ($ value ) {
65- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field A5 has type string ' ); }
68+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field A5 has type string ' ); }
6669return $ value ;
6770}
6871public function &get_B () { return $ this ->B ; }
72+ protected function validate_B ($ value ) { return $ value ; }
6973public function set_B ($ value ) { $ this ->B = $ this ->validate_B ($ value );}
7074public function &get_B1 () { return $ this ->B1 ; }
7175protected function validate_B1 ($ value ) {
72- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field B1 has type string ' ); }
76+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field B1 has type string ' ); }
7377return $ value ;
7478}
7579public function set_B1 ($ value ) { $ this ->B1 = $ this ->validate_B1 ($ value );}
7680public function &get_B2 () { return $ this ->B2 ; }
81+ protected function validate_B2 ($ value ) { return $ value ; }
7782public function set_B2 ($ value ) { $ this ->B2 = $ this ->validate_B2 ($ value );}
7883public function &get_B3 () { return $ this ->B3 ; }
84+ protected function validate_B3 ($ value ) { return $ value ; }
7985public function set_B3 ($ value ) { $ this ->B3 = $ this ->validate_B3 ($ value );}
8086public function &get_B4 () { return $ this ->B4 ; }
8187protected function validate_B4 ($ value ) {
82- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field B4 has type string ' ); }
88+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field B4 has type string ' ); }
8389return $ value ;
8490}
8591public function set_B4 ($ value ) { $ this ->B4 = $ this ->validate_B4 ($ value );}
8692public function &get_B5 () { return $ this ->B5 ; }
8793protected function validate_B5 ($ value ) {
88- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field B5 has type string ' ); }
94+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field B5 has type string ' ); }
8995return $ value ;
9096}
9197public function set_B5 ($ value ) { $ this ->B5 = $ this ->validate_B5 ($ value );}
9298public function get_C () { return $ this ->C ; }
99+ protected function validate_C ($ value ) { return $ value ; }
93100public function get_C1 () { return $ this ->C1 ; }
94101protected function validate_C1 ($ value ) {
95- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field C1 has type string ' ); }
102+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field C1 has type string ' ); }
96103return $ value ;
97104}
98105public function get_C2 () { return $ this ->C2 ; }
106+ protected function validate_C2 ($ value ) { return $ value ; }
99107public function get_C3 () { return $ this ->C3 ; }
108+ protected function validate_C3 ($ value ) { return $ value ; }
100109public function get_C4 () { return $ this ->C4 ; }
101110protected function validate_C4 ($ value ) {
102- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field C4 has type string ' ); }
111+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field C4 has type string ' ); }
103112return $ value ;
104113}
105114public function get_C5 () { return $ this ->C5 ; }
106115protected function validate_C5 ($ value ) {
107- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field C5 has type string ' ); }
116+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field C5 has type string ' ); }
108117return $ value ;
109118}
110119public function &get_D () { return $ this ->D ; }
120+ protected function validate_D ($ value ) { return $ value ; }
111121public function set_D ($ value ) { $ this ->D = $ this ->validate_D ($ value );}
112122public function &get_D1 () { return $ this ->D1 ; }
113123protected function validate_D1 ($ value ) {
114- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field D1 has type string ' ); }
124+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field D1 has type string ' ); }
115125return $ value ;
116126}
117127public function set_D1 ($ value ) { $ this ->D1 = $ this ->validate_D1 ($ value );}
118128public function &get_D2 () { return $ this ->D2 ; }
129+ protected function validate_D2 ($ value ) { return $ value ; }
119130public function set_D2 ($ value ) { $ this ->D2 = $ this ->validate_D2 ($ value );}
120131public function &get_D3 () { return $ this ->D3 ; }
132+ protected function validate_D3 ($ value ) { return $ value ; }
121133public function set_D3 ($ value ) { $ this ->D3 = $ this ->validate_D3 ($ value );}
122134public function &get_D4 () { return $ this ->D4 ; }
123135protected function validate_D4 ($ value ) {
124- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field D4 has type string ' ); }
136+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field D4 has type string ' ); }
125137return $ value ;
126138}
127139public function set_D4 ($ value ) { $ this ->D4 = $ this ->validate_D4 ($ value );}
128140public function &get_D5 () { return $ this ->D5 ; }
129141protected function validate_D5 ($ value ) {
130- if (!is_null ( $ value ) && ! is_string ($ value )) { throw new \InvalidArgumentException ('Field D5 has type string ' ); }
142+ if (!is_string ($ value )) { throw new \InvalidArgumentException ('Field D5 has type string ' ); }
131143return $ value ;
132144}
133145public function set_D5 ($ value ) { $ this ->D5 = $ this ->validate_D5 ($ value );}
0 commit comments