jerowork /
graphql-attribute-schema
| 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 Scalar implements NamedAttribute |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param null|class-string $alias |
||
| 14 | */ |
||
| 15 | 3 | public function __construct( |
|
| 16 | public ?string $name = null, |
||
| 17 | public ?string $description = null, |
||
| 18 | public ?string $alias = null, |
||
| 19 | 3 | ) {} |
|
| 20 | |||
| 21 | 3 | public function getName(): ?string |
|
| 22 | { |
||
| 23 | 3 | return $this->name; |
|
| 24 | } |
||
| 25 | } |
||
| 26 |