Skip to content

Commit e8f743e

Browse files
committed
add php-docs to all classes and methods
1 parent 4dc53ba commit e8f743e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+526
-46
lines changed

src/Arguments/GraphQLArgument.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,23 @@
44

55
use GraphQL\Types\GraphQLType;
66

7+
/**
8+
* Class GraphQLArgument
9+
* @package GraphQL\Arguments
10+
*/
711
abstract class GraphQLArgument
812
{
913
protected $id;
1014
protected $type;
1115

16+
/**
17+
* GraphQLArgument constructor.
18+
* @param string $id
19+
* @param GraphQLType $type
20+
* @param string $description
21+
* @param null $defaultValue
22+
* @param string|null $deprecationReason
23+
*/
1224
public function __construct(string $id, GraphQLType $type, string $description = "", $defaultValue = null, ?string $deprecationReason = null)
1325
{
1426
$this->id = $id;

src/Arguments/GraphQLDirectiveArgument.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace GraphQL\Arguments;
44

5+
/**
6+
* Class GraphQLDirectiveArgument
7+
* @package GraphQL\Arguments
8+
*/
59
class GraphQLDirectiveArgument extends GraphQLArgument
610
{
711

src/Arguments/GraphQLFieldArgument.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace GraphQL\Arguments;
44

5+
/**
6+
* Class GraphQLFieldArgument
7+
* @package GraphQL\Arguments
8+
*/
59
class GraphQLFieldArgument extends GraphQLArgument
610
{
711

src/Directives/GraphQLDirective.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace GraphQL\Directives;
44

5+
/**
6+
* Class GraphQLDirective
7+
* @package GraphQL\Directives
8+
*/
59
class GraphQLDirective
610
{
711
protected $name;

src/Directives/GraphQLIncludeDirective.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
use GraphQL\Arguments\GraphQLDirectiveArgument;
66
use GraphQL\Types\GraphQLBoolean;
77

8+
/**
9+
* Class GraphQLIncludeDirective
10+
* @package GraphQL\Directives
11+
*/
812
class GraphQLIncludeDirective extends GraphQLDirective
913
{
1014
protected $name = "include";
1115

16+
/**
17+
* GraphQLIncludeDirective constructor.
18+
*/
1219
public function __construct()
1320
{
1421
$this->arguments = [

src/Directives/GraphQLSkipDirective.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
use GraphQL\Arguments\GraphQLDirectiveArgument;
66
use GraphQL\Types\GraphQLBoolean;
77

8+
/**
9+
* Class GraphQLSkipDirective
10+
* @package GraphQL\Directives
11+
*/
812
class GraphQLSkipDirective extends GraphQLDirective
913
{
1014
protected $name = "skip";
1115

16+
/**
17+
* GraphQLSkipDirective constructor.
18+
*/
1219
public function __construct()
1320
{
1421
$this->arguments = [

src/Errors/BadImplementationError.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace GraphQL\Errors;
44

5+
/**
6+
* Class BadImplementationError
7+
* @package GraphQL\Errors
8+
*/
59
class BadImplementationError extends GraphQLError
610
{
711
protected $code = "BAD_IMPLEMENTATION";

src/Errors/BadUserInputError.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace GraphQL\Errors;
44

5+
/**
6+
* Class BadUserInputError
7+
* @package GraphQL\Errors
8+
*/
59
class BadUserInputError extends GraphQLError
610
{
711
protected $code = "BAD_USER_INPUT";

src/Errors/ForbiddenError.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace GraphQL\Errors;
44

5+
/**
6+
* Class ForbiddenError
7+
* @package GraphQL\Errors
8+
*/
59
class ForbiddenError extends GraphQLError
610
{
711
protected $code = "FORBIDDEN";

src/Errors/GraphQLError.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
use Exception;
66

7+
/**
8+
* Class GraphQLError
9+
* @package GraphQL\Errors
10+
*/
711
class GraphQLError extends Exception
812
{
913
protected $code;

0 commit comments

Comments
 (0)