@@ -18,15 +18,27 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface ErrorContainerInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return ErrorContainerTrait |
|
| 23 | + */ |
|
| 21 | 24 | public function addError(\Exception $exception); |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return ErrorContainerTrait |
|
| 28 | + */ |
|
| 23 | 29 | public function mergeErrors(self $errorContainer); |
| 24 | 30 | |
| 31 | + /** |
|
| 32 | + * @return boolean |
|
| 33 | + */ |
|
| 25 | 34 | public function hasErrors(); |
| 26 | 35 | |
| 27 | 36 | public function getErrors(); |
| 28 | 37 | |
| 29 | 38 | public function getErrorsArray(); |
| 30 | 39 | |
| 40 | + /** |
|
| 41 | + * @return ErrorContainerTrait |
|
| 42 | + */ |
|
| 31 | 43 | public function clearErrors(); |
| 32 | 44 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 27.11.15. |
| 15 | 15 | */ |
@@ -20,5 +20,8 @@ |
||
| 20 | 20 | |
| 21 | 21 | interface RequestValidatorInterface |
| 22 | 22 | { |
| 23 | + /** |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 23 | 26 | public function validate(Request $request); |
| 24 | 27 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 10/24/16. |
| 15 | 15 | */ |
@@ -25,13 +25,28 @@ |
||
| 25 | 25 | |
| 26 | 26 | interface ResolveValidatorInterface |
| 27 | 27 | { |
| 28 | + /** |
|
| 29 | + * @return void |
|
| 30 | + */ |
|
| 28 | 31 | public function assetTypeHasField(AbstractType $objectType, AstFieldInterface $ast); |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 30 | 36 | public function assertValidArguments(FieldInterface $field, AstFieldInterface $query, Request $request); |
| 31 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 32 | 41 | public function assertValidResolvedValueForField(FieldInterface $field, $resolvedValue); |
| 33 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 34 | 46 | public function assertTypeImplementsInterface(AbstractType $type, AbstractInterfaceType $interface); |
| 35 | 47 | |
| 48 | + /** |
|
| 49 | + * @return void |
|
| 50 | + */ |
|
| 36 | 51 | public function assertTypeInUnionTypes(AbstractType $type, AbstractUnionType $unionType); |
| 37 | 52 | } |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 01.12.15. |
| 15 | 15 | */ |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /** |
| 14 | 14 | * Date: 12.05.16. |
| 15 | 15 | */ |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of GraphQL project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Youshido\GraphQL\Type; |
| 15 | 15 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * http://opensource.org/licenses/MIT |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | /* |
| 14 | 14 | * This file is a part of graphql-youshido project. |
| 15 | 15 | * |