Skip to content

Commit 45d38be

Browse files
committed
fix(enum): use case instead of const
1 parent 0f7dd29 commit 45d38be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Creators/CreatorEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getNameSpace(): string
5353

5454
public function getClassName(): string
5555
{
56-
return $this->enumName;
56+
return $this->enumName . ' : string';
5757
}
5858

5959
private function writeAttribute(string $attributeStub, string $attributeName, string $attributeString): string

stubs/Enums/enum.attribute.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
public const {{ AttributeName }} = '{{ AttributeString }}';
1+
case {{ AttributeName }} = '{{ AttributeString }}';

0 commit comments

Comments
 (0)