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