Completed
Pull Request — 8.x-3.x (#442)
by Sebastian
02:26
created

InputObjectType   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

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\Plugin\GraphQL\InputTypes\InputTypePluginBase;
6
use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginReferenceInterface;
7
use Drupal\graphql\Plugin\GraphQL\TypeSystemPluginReferenceTrait;
8
use Youshido\GraphQL\Config\Object\InputObjectTypeConfig;
9
use Youshido\GraphQL\Type\InputObject\AbstractInputObjectType;
10
11
class InputObjectType extends AbstractInputObjectType implements TypeSystemPluginReferenceInterface {
12
  use TypeSystemPluginReferenceTrait;
13
14
  /**
15
   * The associated type system plugin.
16
   *
17
   * @var \Drupal\graphql\Plugin\GraphQL\InputTypes\InputTypePluginBase
18
   */
19
  protected $plugin;
20
21
  /**
22
   * {@inheritdoc}
23
   */
24
  public function __construct(InputTypePluginBase $plugin, array $config = []) {
25
    $this->plugin = $plugin;
26
    $this->config = new InputObjectTypeConfig($config, $this);
27
  }
28
29
  /**
30
   * {@inheritdoc}
31
   */
32
  public function build($config) {
33
    // Nothing to do here.
34
  }
35
}
36