File tree Expand file tree Collapse file tree 5 files changed +1
-33
lines changed Expand file tree Collapse file tree 5 files changed +1
-33
lines changed Original file line number Diff line number Diff line change 1010
1111class BlockCollection extends EntityCollection
1212{
13-
14- protected function setResponseData (array $ responseData ): void
15- {
16- parent ::setResponseData ($ responseData );
17- $ this ->collectChildren ();
18- }
19-
2013 protected function collectChildren ()
2114 {
2215 $ this ->collection = new Collection ();
Original file line number Diff line number Diff line change 1010
1111class DatabaseCollection extends EntityCollection
1212{
13-
14- protected function setResponseData (array $ responseData ): void
15- {
16- parent ::setResponseData ($ responseData );
17- $ this ->collectChildren ();
18- }
19-
2013 protected function collectChildren ()
2114 {
2215 $ this ->collection = new Collection ();
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ protected function setResponseData(array $reponseData): void
3030
3131 $ this ->responseData = $ reponseData ;
3232 $ this ->fillFromRaw ();
33+ $ this ->collectChildren ();
3334 }
3435
3536 protected function fillFromRaw ()
@@ -40,7 +41,6 @@ protected function fillFromRaw()
4041 protected function fillResult ()
4142 {
4243 $ this ->rawResults = $ this ->responseData ['results ' ];
43- $ this ->collectChildren ();
4444 }
4545
4646
Original file line number Diff line number Diff line change 1010
1111class PageCollection extends EntityCollection
1212{
13-
14- protected function setResponseData (array $ responseData ): void
15- {
16- parent ::setResponseData ($ responseData );
17- $ this ->collectChildren ();
18- }
19-
2013 protected function collectChildren ()
2114 {
2215 $ this ->collection = new Collection ();
2316 foreach ($ this ->rawResults as $ pageChild ) {
2417 $ this ->collection ->add (new Page ($ pageChild ));
2518 }
2619 }
27-
28-
29-
30-
3120}
Original file line number Diff line number Diff line change 1010
1111class UserCollection extends EntityCollection
1212{
13-
14- protected function setResponseData (array $ responseData ): void
15- {
16- parent ::setResponseData ($ responseData );
17- $ this ->collectChildren ();
18- }
19-
2013 protected function collectChildren ()
2114 {
2215 $ this ->collection = new Collection ();
You can’t perform that action at this time.
0 commit comments