This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
119 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
|
||
namespace Digia\GraphQL\Type\Contract; | ||
|
||
use Digia\GraphQL\Type\Definition\Contract\AbstractTypeInterface; | ||
use Digia\GraphQL\Type\Definition\Contract\NamedTypeInterface; | ||
use Digia\GraphQL\Type\Definition\Contract\TypeInterface; | ||
use Digia\GraphQL\Type\Definition\ObjectType; | ||
|
||
interface SchemaInterface | ||
{ | ||
/** | ||
* @return ObjectType | ||
*/ | ||
public function getQuery(): ObjectType; | ||
|
||
/** | ||
* @return ObjectType | ||
*/ | ||
public function getMutation(): ObjectType; | ||
|
||
/** | ||
* @return ObjectType | ||
*/ | ||
public function getSubscription(): ObjectType; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getDirectives(): array; | ||
|
||
/** | ||
* @return NamedTypeInterface[] | ||
*/ | ||
public function getTypeMap(): array; | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function getAssumeValid(): bool; | ||
|
||
/** | ||
* @param AbstractTypeInterface $abstractType | ||
* @param TypeInterface $possibleType | ||
* @return bool | ||
*/ | ||
public function isPossibleType(AbstractTypeInterface $abstractType, TypeInterface $possibleType): bool; | ||
|
||
/** | ||
* @param AbstractTypeInterface $abstractType | ||
* @return null|TypeInterface[] | ||
*/ | ||
public function getPossibleTypes(AbstractTypeInterface $abstractType): ?array; | ||
|
||
/** | ||
* @param string $name | ||
* @return TypeInterface|null | ||
*/ | ||
public function getType(string $name): ?TypeInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters