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

InputObjectType::build()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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