-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathInputTypeProperty.php
More file actions
39 lines (34 loc) · 920 Bytes
/
InputTypeProperty.php
File metadata and controls
39 lines (34 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
declare(strict_types=1);
namespace TheCodingMachine\GraphQLite\Parameters;
use GraphQL\Type\Definition\InputType;
use GraphQL\Type\Definition\Type;
use TheCodingMachine\GraphQLite\Types\ArgumentResolver;
class InputTypeProperty extends InputTypeParameter
{
public function __construct(
private readonly string $propertyName,
string $fieldName,
InputType&Type $type,
string $description,
bool $hasDefaultValue,
mixed $defaultValue,
bool $defaultValueImplicit,
ArgumentResolver $argumentResolver,
)
{
parent::__construct(
$fieldName,
$type,
$description,
$hasDefaultValue,
$defaultValue,
$defaultValueImplicit,
$argumentResolver,
);
}
public function getPropertyName(): string
{
return $this->propertyName;
}
}