Issues (645)

src/Entity/QueryMapInterface.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Drupal\graphql\Entity;
4
5
use Drupal\Core\Config\Entity\ConfigEntityInterface;
0 ignored issues
show
The type Drupal\Core\Config\Entity\ConfigEntityInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/**
8
 * Provides an interface defining a GraphQLQueryMap entity.
9
 */
10
interface QueryMapInterface extends ConfigEntityInterface
11
{
12
13
  /**
14
   * Returns a single GraphQL query from the map.
15
   *
16
   * @param $queryId
17
   * @return string|null
18
   *   A single GraphQL query.
19
   */
20
  function getQuery($queryId);
21
22
  /**
23
   * Checks if the query map with version ID exists.
24
   *
25
   * @param int $version
26
   *   The GraphQL query map version ID.
27
   *
28
   * @return bool
29
   *   TRUE if a query map with the given ID exists, FALSE otherwise.
30
   */
31
  public static function exists($version);
32
}
33