File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ trait GetsRowsFromVerbsStates
16
16
17
17
public function getRows (): array
18
18
{
19
- $ stateClass = $ this ->stateClass ;
19
+ $ state_class = $ this ->state_class ;
20
20
21
- return VerbSnapshot::where ('type ' , $ stateClass )
21
+ return VerbSnapshot::where ('type ' , $ state_class )
22
22
->whereNotNull ('last_event_id ' )
23
23
->get ()->map (/**
24
24
* @throws JsonException
25
25
*/ function ($ row ) {
26
26
$ record = json_decode ((string ) $ row ->data , true );
27
- // $record = (array) $stateClass ::load($row->state_id);
27
+ // $record = (array) $state_class ::load($row->state_id);
28
28
// These next two foreach blocks simply ensure that all records have the same
29
29
// number of columns regardless of any changes to the state since the record was created.
30
30
// If public properties have been added since a record was created, it gets added to the record with
@@ -49,7 +49,7 @@ public function getRows(): array
49
49
50
50
public function getSchema (): array
51
51
{
52
- $ reflection = new ReflectionClass ($ this ->stateClass );
52
+ $ reflection = new ReflectionClass ($ this ->state_class );
53
53
54
54
return collect ($ reflection ->getProperties (ReflectionProperty::IS_PUBLIC ))
55
55
->mapWithKeys (fn (ReflectionProperty $ property ) => [$ property ->getName () => 'string ' ])
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Channel extends Model
15
15
use GetsRowsFromVerbsStates;
16
16
use HasVerbsState;
17
17
18
- protected string $ stateClass = ChannelState::class;
18
+ protected string $ state_class = ChannelState::class;
19
19
20
20
protected $ guarded = [];
21
21
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Member extends Model
22
22
23
23
public $ incrementing = false ;
24
24
25
- protected string $ stateClass = MemberState::class;
25
+ protected string $ state_class = MemberState::class;
26
26
27
27
public function casts (): array
28
28
{
You can’t perform that action at this time.
0 commit comments