Completed
Push — master ( dbb439...8abb49 )
by Jakub
01:34
created

DummyEngine   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hasAnnotation() 0 2 1
A getAnnotation() 0 2 1
1
<?php
2
declare(strict_types=1);
3
4
namespace MyTester\Annotations;
5
6
/**
7
 * Dummy engine for annotations reader
8
 *
9
 * @author Jakub Konečný
10
 */
11
final class DummyEngine implements \MyTester\IAnnotationsReaderEngine {
12
  public function hasAnnotation(string $name, $class, string $method = null): bool {
13
    return true;
14
  }
15
16
  public function getAnnotation(string $name, $class, string $method = null) {
17
    return "abc";
18
  }
19
}
20
?>