Story::continue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AardsGerds\Game\Event\Story;
6
7
use AardsGerds\Game\Event\Event;
8
use AardsGerds\Game\Player\Player;
9
use AardsGerds\Game\Player\PlayerAction;
10
11
final class Story
12
{
13
    public static function continue(Event $event, Player $player, PlayerAction $playerAction): void
14
    {
15
        $decision = $event($player, $playerAction);
16
        self::continue($decision(), $player, $playerAction);
17
    }
18
}
19