QaCheckBase::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 2
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Drupal\qa\Plugin;
4
5
use Drupal\Component\Plugin\PluginBase;
6
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
7
use Drupal\qa\Pass;
8
9
/**
10
 * Base class for QA Check plugins.
11
 */
12
abstract class QaCheckBase extends PluginBase implements QaCheckInterface, ContainerFactoryPluginInterface {
13
14
  /**
15
   * Add common methods and abstract methods for your plugin type here.
16
   */
17
  public function run(): Pass {
18
    return new Pass($this);
19
  }
20
21
}
22