Completed
Push — 8.x-3.x ( d7a068...174067 )
by Sebastian
04:46
created

CacheableEdgeTrait::getCacheMetadata()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 17
Code Lines 9

Duplication

Lines 17
Ratio 100 %

Importance

Changes 0
Metric Value
cc 4
eloc 9
nc 4
nop 2
dl 17
loc 17
rs 9.2
c 0
b 0
f 0
1
<?php
2
3
namespace Drupal\graphql\GraphQL;
4
5
use Youshido\GraphQL\Schema\AbstractSchema;
6
7
trait CacheableEdgeTrait {
8
9
  /**
10
   * Retrieves the referenced plugin instance.
11
   *
12
   * @return \Drupal\graphql\Plugin\GraphQL\TypeSystemPluginInterface
13
   *   The referenced plugin instance.
14
   */
15
  abstract public function getPlugin();
16
17
  /**
18
   * {@inheritdoc}
19
   */
20
  public function getSchemaCacheMetadata(AbstractSchema $schema) {
0 ignored issues
show
Unused Code introduced by
The parameter $schema is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    return $this->getPlugin()->getSchemaCacheMetadata();
22
  }
23
24
  /**
25
   * {@inheritdoc}
26
   */
27
  public function getResponseCacheMetadata(AbstractSchema $schema) {
0 ignored issues
show
Unused Code introduced by
The parameter $schema is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    return $this->getPlugin()->getResponseCacheMetadata();
29
  }
30
31
}