Navigation | Overlay |
---|---|
t Navigate files | h Toggle hits |
y Change url to tip of branch | m Toggle misses |
b / v Jump to prev/next hit line | p Toggle partial |
z / x Jump to prev/next missed or partial line | 1..9 Toggle flags |
shift + o Open current page in GitHub | a Toggle all on |
/ or ? Show keyboard shortcuts dialog | c Toggle context lines or commits |
1 |
<?php
|
|
2 |
|
|
3 |
namespace Nuwave\Lighthouse\Console; |
|
4 |
|
|
5 |
class UnionCommand extends LighthouseGeneratorCommand |
|
6 |
{
|
|
7 |
protected $name = 'lighthouse:union'; |
|
8 |
|
|
9 |
protected $description = 'Create a class for a GraphQL union type.'; |
|
10 |
|
|
11 |
protected $type = 'Union'; |
|
12 |
|
|
13 |
protected function namespaceConfigKey(): string |
|
14 |
{
|
|
15 |
return 'unions'; |
|
16 |
}
|
|
17 |
|
|
18 |
protected function getStub(): string |
|
19 |
{
|
|
20 |
return __DIR__.'/stubs/typeResolver.stub'; |
|
21 |
}
|
|
22 |
}
|
Read our documentation on viewing source code .