Lines 0.00% 0 / 6
Functions and Methods 0.00% 0 / 2
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
AppScaffoldKind 0.00% 0 / 6 0.00% 0 / 2 42 0.00% 0 / 1
 getAppStub 0.00% 0 / 3 0.00% 0 / 1 12
 getTestStub 0.00% 0 / 3 0.00% 0 / 1 12
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Console\Scaffold;
6
7enum AppScaffoldKind
8{
9    case Automation;
10    case Template;
11
12    public function getAppStub(): string
13    {
14        return match ($this) {
15            self::Automation => 'App.php.stub',
16            self::Template => 'AppTemplate.php.stub',
17        };
18    }
19
20    public function getTestStub(): string
21    {
22        return match ($this) {
23            self::Automation => 'AppTest.php.stub',
24            self::Template => 'AppTemplateTest.php.stub',
25        };
26    }
27}