Skip to content
This repository was archived by the owner on Feb 10, 2019. It is now read-only.

Commit cd0c743

Browse files
committed
Refactored visibility of type(), args() and field() functions
Updated Console commands to use Illuminate\Console\GeneratorCommand
1 parent c80b697 commit cd0c743

16 files changed

+17
-17
lines changed

src/Folklore/GraphQL/Relay/ConnectionEdgeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class ConnectionEdgeType extends BaseType
99
{
10-
protected function fields()
10+
public function fields()
1111
{
1212
return [
1313
'cursor' => [

src/Folklore/GraphQL/Relay/Console/ConnectionMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Folklore\GraphQL\Relay\Console;
44

5-
use Folklore\GraphQL\Console\GeneratorCommand;
5+
use Illuminate\Console\GeneratorCommand;
66

77
class ConnectionMakeCommand extends GeneratorCommand
88
{

src/Folklore/GraphQL/Relay/Console/InputMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Folklore\GraphQL\Relay\Console;
44

5-
use Folklore\GraphQL\Console\GeneratorCommand;
5+
use Illuminate\Console\GeneratorCommand;
66

77
class InputMakeCommand extends GeneratorCommand
88
{

src/Folklore/GraphQL/Relay/Console/MutationMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Folklore\GraphQL\Relay\Console;
44

5-
use Folklore\GraphQL\Console\GeneratorCommand;
5+
use Illuminate\Console\GeneratorCommand;
66

77
class MutationMakeCommand extends GeneratorCommand
88
{

src/Folklore/GraphQL/Relay/Console/NodeMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Folklore\GraphQL\Relay\Console;
44

5-
use Folklore\GraphQL\Console\GeneratorCommand;
5+
use Illuminate\Console\GeneratorCommand;
66

77
class NodeMakeCommand extends GeneratorCommand
88
{

src/Folklore/GraphQL/Relay/Console/PayloadMakeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Folklore\GraphQL\Relay\Console;
44

5-
use Folklore\GraphQL\Console\GeneratorCommand;
5+
use Illuminate\Console\GeneratorCommand;
66

77
class PayloadMakeCommand extends GeneratorCommand
88
{

src/Folklore/GraphQL/Relay/Console/stubs/input.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DummyClass extends BaseInputType
1313
'description' => 'A relay mutation input type'
1414
];
1515

16-
protected function fields()
16+
public function fields()
1717
{
1818
return [
1919

src/Folklore/GraphQL/Relay/Console/stubs/mutation.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DummyClass extends BaseMutation
1818
return null;
1919
}
2020

21-
protected function type()
21+
public function type()
2222
{
2323
return null;
2424
}

src/Folklore/GraphQL/Relay/Console/stubs/node.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DummyClass extends BaseNodeType
1313
'description' => 'A relay node type'
1414
];
1515

16-
protected function fields()
16+
public function fields()
1717
{
1818
return [
1919
'id' => [

src/Folklore/GraphQL/Relay/Console/stubs/payload.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DummyClass extends BasePayloadType
1313
'description' => 'A relay mutation payload type'
1414
];
1515

16-
protected function fields()
16+
public function fields()
1717
{
1818
return [
1919

src/Folklore/GraphQL/Relay/NodeIdField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class NodeIdField extends BaseField
1414
'description' => 'A relay node id field'
1515
];
1616

17-
protected function type()
17+
public function type()
1818
{
1919
return Type::nonNull(Type::id());
2020
}

src/Folklore/GraphQL/Relay/NodeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class NodeInterface extends BaseInterfaceType
1313
'description' => 'The relay node interface'
1414
];
1515

16-
protected function fields()
16+
public function fields()
1717
{
1818
return [
1919
'id' => [

src/Folklore/GraphQL/Relay/NodeQuery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class NodeQuery extends Query
1717
'description' => 'A query'
1818
];
1919

20-
protected function type()
20+
public function type()
2121
{
2222
return app('graphql')->type('Node');
2323
}
2424

25-
protected function args()
25+
public function args()
2626
{
2727
return [
2828
'id' => [

src/Folklore/GraphQL/Relay/PageInfoType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PageInfoType extends BaseType
1313
'description' => 'The relay pageInfo type used by connections'
1414
];
1515

16-
protected function fields()
16+
public function fields()
1717
{
1818
return [
1919
'hasNextPage' => [

src/Folklore/GraphQL/Relay/Support/ConnectionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function edgeType()
1919
return null;
2020
}
2121

22-
protected function fields()
22+
public function fields()
2323
{
2424
return [
2525
'total' => [

src/Folklore/GraphQL/Relay/Support/Mutation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setInputType($inputType)
2525
$this->inputType = $inputType;
2626
}
2727

28-
protected function args()
28+
public function args()
2929
{
3030
return [
3131
'input' => [

0 commit comments

Comments
 (0)