Completed
Pull Request — 8.x-3.x (#471)
by Sebastian
04:42
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
   * @return \Drupal\graphql\Plugin\GraphQL\TypeSystemPluginInterface
11
   */
12
  abstract public function getPlugin();
13
14
  /**
15
   * {@inheritdoc}
16
   */
17
  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...
18
    return $this->getPlugin()->getSchemaCacheMetadata();
19
  }
20
21
  /**
22
   * {@inheritdoc}
23
   */
24
  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...
25
    return $this->getPlugin()->getResponseCacheMetadata();
26
  }
27
28
}