Completed
Push — 8.x-3.x ( e67c0e...2e01b0 )
by Philipp
02:27
created

InputObjectType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A build() 0 3 1
1
<?php
2
3
namespace Drupal\graphql\GraphQL\Type;
4
5
use Drupal\graphql\GraphQL\CacheableEdgeInterface;
6
use Drupal\graphql\GraphQL\CacheableEdgeTrait;
7
use Drupal\graphql\Plugin\GraphQL\InputTypes\InputTypePluginBase;
8
use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginReferenceInterface;
9
use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginReferenceTrait;
10
use Youshido\GraphQL\Config\Object\InputObjectTypeConfig;
11
use Youshido\GraphQL\Type\InputObject\AbstractInputObjectType;
12
13
class InputObjectType extends AbstractInputObjectType implements TypeSystemPluginReferenceInterface, CacheableEdgeInterface  {
14
  use TypeSystemPluginReferenceTrait;
15
  use CacheableEdgeTrait;
16
17
  /**
18
   * {@inheritdoc}
19
   */
20
  public function __construct(InputTypePluginBase $plugin, array $config = []) {
21
    $this->plugin = $plugin;
22
    $this->config = new InputObjectTypeConfig($config, $this);
23
  }
24
25
  /**
26
   * {@inheritdoc}
27
   */
28
  public function build($config) {
29
    // Nothing to do here.
30
  }
31
}
32