Skip to content

Commit dab37b5

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 570c6a6 + 634906c commit dab37b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The most common usage of constraint directives is to validate input from client
4343
```php
4444
$intConstraint; // instance of \Graphpinator\ConstraintDirectives\IntConstraintDirective
4545

46-
\Graphpinator\Argument\Argument::create(
46+
\Graphpinator\Typesystem\Argument\Argument::create(
4747
'year'
4848
\Graphpinator\Typesystem\Container::Int(),
4949
)->addDirective(
@@ -59,7 +59,7 @@ Additional usage of constraint directives is to validate output from your resolv
5959
```php
6060
$intConstraint; // instance of \Graphpinator\ConstraintDirectives\IntConstraintDirective
6161

62-
\Graphpinator\Field\Field::create(
62+
\Graphpinator\Typesystem\Field\Field::create(
6363
'year'
6464
\Graphpinator\Typesystem\Container::Int(),
6565
)->addDirective(
@@ -73,7 +73,7 @@ $intConstraint; // instance of \Graphpinator\ConstraintDirectives\IntConstraintD
7373
Special case is `ObjectConstraint` which declares additional information on which fields must be filled. It is a flexible solution to the input-union problem, but can also be applied on Interface/Type to semantically indicate which values are returned.
7474

7575
```php
76-
class DogOrCatInput extends \Graphpinator\Type\InputType
76+
class DogOrCatInput extends \Graphpinator\Typesystem\InputType
7777
{
7878
protected const NAME = 'DogOrCatInput';
7979

@@ -85,11 +85,11 @@ class DogOrCatInput extends \Graphpinator\Type\InputType
8585
$this->addDirective($objectConstraint, ['exactlyOne' => ['dog', 'cat']]);
8686
}
8787

88-
protected function getFieldDefinition() : \Graphpinator\Argument\ArgumentSet
88+
protected function getFieldDefinition() : \Graphpinator\Typesystem\Argument\ArgumentSet
8989
{
90-
return new \Graphpinator\Argument\ArgumentSet([
91-
\Graphpinator\Argument\Argument::create('dog', \Graphpinator\Typesystem\Container::String()),
92-
\Graphpinator\Argument\Argument::create('cat', \Graphpinator\Typesystem\Container::String()),
90+
return new \Graphpinator\Typesystem\Argument\ArgumentSet([
91+
\Graphpinator\Typesystem\Argument\Argument::create('dog', \Graphpinator\Typesystem\Container::String()),
92+
\Graphpinator\Typesystem\Argument\Argument::create('cat', \Graphpinator\Typesystem\Container::String()),
9393
]);
9494
}
9595
}

0 commit comments

Comments
 (0)