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

TypeSystemPluginReferenceTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPlugin() 0 3 1
1
<?php
2
3
namespace Drupal\graphql\Plugin\GraphQL;
4
5
trait TypeSystemPluginReferenceTrait {
6
7
  /**
8
   * The associated field or type system plugin.
9
   *
10
   * @var \Drupal\graphql\Plugin\GraphQL\TypeSystemPluginInterface
11
   */
12
  protected $plugin;
13
14
  /**
15
   * {@inheritdoc}
16
   */
17
  public function getPlugin() {
18
    return $this->plugin;
19
  }
20
21
}