Add goals repository and configurable rules engine
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
939193f258
commit
7155396312
19 files changed
+882
No files matched your search
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
declare( strict_types=1 );
|
||||
|
||||
namespace StreamGoals\Tests\Unit;
|
||||
|
||||
use StreamGoals\Rules\StateRepository;
|
||||
|
||||
final class FakeStateRepository implements StateRepository {
|
||||
public array $data = array();
|
||||
public function getInt( int $goalId, string $key, int $default = 0 ): int {
|
||||
return $this->data[ "$goalId:$key" ] ?? $default;
|
||||
}
|
||||
public function setInt( int $goalId, string $key, int $value ): void {
|
||||
$this->data[ "$goalId:$key" ] = $value;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user