19 lines
498 B
PHP
19 lines
498 B
PHP
<?php
|
|||
|
|
declare( strict_types=1 );
|
||
|
|
|
||
|
|
namespace StreamGoals\Overlay;
|
||
|
|
|
||
|
|
/** Optional capability: alerts the streamer asked to see again. */
|
||
|
|
interface ReplaySource {
|
||
|
|
|
||
|
|
/** @return array<int,array{seq:int,id:int}> Unexpired replay requests, oldest first. */
|
||
|
|
public function pendingReplays( int $now ): array;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The completed + approved donations among $ids, any age.
|
||
|
|
*
|
||
|
|
* @param int[] $ids
|
||
|
|
* @return array<int,array<string,mixed>>
|
||
|
|
*/
|
||
|
|
public function donationsByIds( array $ids ): array;
|
||
|
|
}
|