Lines 100.00% 6 / 6
Methods 100.00% 2 / 2
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 emitsLeading 100.00% 3 / 3 100.00% 1 / 1 3
 emitsTrailing 100.00% 3 / 3 100.00% 1 / 1 3
7enum Edge: string
8{
9    case Leading = 'leading';
10    case Trailing = 'trailing';
11    case Both = 'both';
12
13    public function emitsLeading(): bool
14    {
15        return match ($this) {
16            self::Leading, self::Both => true,
17            self::Trailing => false,
18        };
19    }
20
21    public function emitsTrailing(): bool
22    {
23        return match ($this) {
24            self::Trailing, self::Both => true,
25            self::Leading => false,
26        };
27    }
28}