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 10
10
11
11
class BlockCollection extends EntityCollection
12
12
{
13
-
14
- protected function setResponseData (array $ responseData ): void
15
- {
16
- parent ::setResponseData ($ responseData );
17
- $ this ->collectChildren ();
18
- }
19
-
20
13
protected function collectChildren ()
21
14
{
22
15
$ this ->collection = new Collection ();
Original file line number Diff line number Diff line change 10
10
11
11
class DatabaseCollection extends EntityCollection
12
12
{
13
-
14
- protected function setResponseData (array $ responseData ): void
15
- {
16
- parent ::setResponseData ($ responseData );
17
- $ this ->collectChildren ();
18
- }
19
-
20
13
protected function collectChildren ()
21
14
{
22
15
$ this ->collection = new Collection ();
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ protected function setResponseData(array $reponseData): void
30
30
31
31
$ this ->responseData = $ reponseData ;
32
32
$ this ->fillFromRaw ();
33
+ $ this ->collectChildren ();
33
34
}
34
35
35
36
protected function fillFromRaw ()
@@ -40,7 +41,6 @@ protected function fillFromRaw()
40
41
protected function fillResult ()
41
42
{
42
43
$ this ->rawResults = $ this ->responseData ['results ' ];
43
- $ this ->collectChildren ();
44
44
}
45
45
46
46
Original file line number Diff line number Diff line change 10
10
11
11
class PageCollection extends EntityCollection
12
12
{
13
-
14
- protected function setResponseData (array $ responseData ): void
15
- {
16
- parent ::setResponseData ($ responseData );
17
- $ this ->collectChildren ();
18
- }
19
-
20
13
protected function collectChildren ()
21
14
{
22
15
$ this ->collection = new Collection ();
23
16
foreach ($ this ->rawResults as $ pageChild ) {
24
17
$ this ->collection ->add (new Page ($ pageChild ));
25
18
}
26
19
}
27
-
28
-
29
-
30
-
31
20
}
Original file line number Diff line number Diff line change 10
10
11
11
class UserCollection extends EntityCollection
12
12
{
13
-
14
- protected function setResponseData (array $ responseData ): void
15
- {
16
- parent ::setResponseData ($ responseData );
17
- $ this ->collectChildren ();
18
- }
19
-
20
13
protected function collectChildren ()
21
14
{
22
15
$ this ->collection = new Collection ();
You can’t perform that action at this time.
0 commit comments