Passed
Push — phpbench ( ffc4ab )
by Michael
02:36
created

ReadPerformanceBench::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\Performance\Annotations;
6
7
use Doctrine\Annotations\AnnotationReader;
8
use ReflectionMethod;
9
10
/**
11
 * @BeforeMethods({"initializeMethod", "initialize"})
12
 */
13
final class ReadPerformanceBench
14
{
15
    use MethodInitializer;
16
17
    /** @var AnnotationReader */
18
    private $reader;
19
20
    public function initialize() : void
21
    {
22
        $this->reader = new AnnotationReader();
23
    }
24
25
    /**
26
     * @Revs(500)
27
     * @Iterations(5)
28
     */
29
    public function bench() : void
30
    {
31
        $this->reader->getMethodAnnotations($this->method);
32
    }
33
}
34