Story   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
dl 0
loc 6
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A continue() 0 4 1
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