Completed
Push — 3.2 ( 51a84d...abe3a3 )
by Jonathan
8s
created

EntityHook   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A filterMatches() 0 5 2
1
<?php
2
3
namespace Drupal\DrupalExtension\Hook\Call;
4
5
use Behat\Testwork\Hook\Call\RuntimeFilterableHook;
6
use Behat\Testwork\Hook\Scope\HookScope;
7
8
/**
9
 * Entity hook class.
10
 */
11
abstract class EntityHook extends RuntimeFilterableHook {
12
13
  /**
14
   * {@inheritDoc}
15
   */
16
  public function filterMatches(HookScope $scope) {
17
    if (NULL === ($filterString = $this->getFilterString())) {
18
      return TRUE;
19
    }
20
  }
21
22
}
23