Use an Enum for project type conditions
This commit is contained in:
parent
0eb7d1a1b6
commit
44e7f63760
3 changed files with 16 additions and 2 deletions
12
src/Enum/ProjectType.php
Normal file
12
src/Enum/ProjectType.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
declare(strict_type=1);
|
||||
|
||||
namespace App\Enum;
|
||||
|
||||
enum ProjectType: string
|
||||
{
|
||||
// PHP.
|
||||
case Drupal = 'drupal';
|
||||
case Sculpin = 'sculpin';
|
||||
}
|
Reference in a new issue