Issues (158)

src/Attribute/Enum.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Jerowork\GraphqlAttributeSchema\Attribute;
6
7
use Attribute;
8
9
#[Attribute(Attribute::TARGET_CLASS)]
10
final readonly class Enum implements NamedAttribute
0 ignored issues
show
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 10 at column 6
Loading history...
11
{
12 3
    public function __construct(
13
        public ?string $name = null,
14
        public ?string $description = null,
15 3
    ) {}
16
17 3
    public function getName(): ?string
18
    {
19 3
        return $this->name;
20
    }
21
}
22