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
3declare(strict_types=1);
4
5namespace Lorekeeper\Bot\Steps;
6
7use Generator;
8use Lorekeeper\Client\Script\Failed;
9use Lorekeeper\Client\Script\Instruction;
10use Lorekeeper\Client\Script\TimedOut;
11use Lorekeeper\Server\Event\Event;
12use RuntimeException;
13
14interface 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}