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

DummyEngine::getAnnotation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
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
?>