Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Lorekeeper\Bot\Steps; | |
| 6 | ||
| 7 | use Generator; | |
| 8 | use Lorekeeper\Client\Script\Failed; | |
| 9 | use Lorekeeper\Client\Script\Instruction; | |
| 10 | use Lorekeeper\Client\Script\TimedOut; | |
| 11 | use Lorekeeper\Server\Event\Event; | |
| 12 | use RuntimeException; | |
| 13 | ||
| 14 | interface Action | |
| 15 | { | |
| 16 | public function describe(): string; | |
| 17 | ||
| 18 | /** | |
| 19 | * @throws RuntimeException | |
| 20 | * | |
| 21 | * @return Generator<int, Instruction, null|Event|TimedOut, null|Failed> | |
| 22 | */ | |
| 23 | public function play(StepScript $bot): Generator; | |
| 24 | } |