Total Complexity | 3 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class UpdateSchemaLockCommand extends Command implements CommandInterface |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $signature = 'graphql:schema:lock:update'; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $description = 'Updates the schema.lock file'; |
||
27 | |||
28 | /** |
||
29 | * @var GraphQLService |
||
30 | */ |
||
31 | private $graphQlService; |
||
32 | |||
33 | /** |
||
34 | * UpdateSchemaLockCommand constructor. |
||
35 | * |
||
36 | * @param GraphQLService $graphQlService |
||
37 | */ |
||
38 | public function __construct(GraphQLService $graphQlService) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Returns path to graphql query |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | protected function getQueryPath() |
||
51 | { |
||
52 | return __DIR__ . '/../../resources/graphql/Introspection.graphql'; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | public function handle() |
||
63 | } |
||
64 | } |
||
65 |