GraphQLTwigExtension::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Drupal\graphql_twig;
4
5
/**
6
 * Simple Twig extension to integrate GraphQL.
7
 */
8
class GraphQLTwigExtension extends \Twig_Extension {
9
10
  /**
11
   * {@inheritdoc}
12
   */
13
  public function getName() {
14
    return get_class($this);
15
  }
16
17
  /**
18
   * {@inheritdoc}
19
   */
20
  public function getTokenParsers() {
21
    return [new GraphQLTokenParser()];
22
  }
23
24
  /**
25
   * {@inheritdoc}
26
   */
27
  public function getNodeVisitors() {
28
    return [new GraphQLNodeVisitor()];
29
  }
30
31
}
32