Completed
Push — 8.x-3.x ( e67c0e...2e01b0 )
by Philipp
02:27
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\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