12 lines
294 B
PHP
12 lines
294 B
PHP
<?php
|
|
declare( strict_types=1 );
|
|
|
|
namespace StreamGoals\Rules;
|
|
|
|
/** Integer key/value state per goal (sg_state). */
|
|
interface StateRepository {
|
|
public function getInt( int $goalId, string $key, int $default = 0 ): int;
|
|
|
|
public function setInt( int $goalId, string $key, int $value ): void;
|
|
}
|