Skip to content

Commit 8a0bab8

Browse files
committed
Handing off to Len
1 parent 16d7fd4 commit 8a0bab8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/adverbs/src/Traits/GetsRowsFromVerbsStates.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ trait GetsRowsFromVerbsStates
1616

1717
public function getRows(): array
1818
{
19-
$stateClass = $this->stateClass;
19+
$state_class = $this->state_class;
2020

21-
return VerbSnapshot::where('type', $stateClass)
21+
return VerbSnapshot::where('type', $state_class)
2222
->whereNotNull('last_event_id')
2323
->get()->map(/**
2424
* @throws JsonException
2525
*/ function ($row) {
2626
$record = json_decode((string) $row->data, true);
27-
// $record = (array) $stateClass::load($row->state_id);
27+
// $record = (array) $state_class::load($row->state_id);
2828
// These next two foreach blocks simply ensure that all records have the same
2929
// number of columns regardless of any changes to the state since the record was created.
3030
// 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
4949

5050
public function getSchema(): array
5151
{
52-
$reflection = new ReflectionClass($this->stateClass);
52+
$reflection = new ReflectionClass($this->state_class);
5353

5454
return collect($reflection->getProperties(ReflectionProperty::IS_PUBLIC))
5555
->mapWithKeys(fn (ReflectionProperty $property) => [$property->getName() => 'string'])

packages/hallway-core/src/Channels/Models/Channel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Channel extends Model
1515
use GetsRowsFromVerbsStates;
1616
use HasVerbsState;
1717

18-
protected string $stateClass = ChannelState::class;
18+
protected string $state_class = ChannelState::class;
1919

2020
protected $guarded = [];
2121

packages/hallway-core/src/Members/Models/Member.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Member extends Model
2222

2323
public $incrementing = false;
2424

25-
protected string $stateClass = MemberState::class;
25+
protected string $state_class = MemberState::class;
2626

2727
public function casts(): array
2828
{

0 commit comments

Comments
 (0)