BaseGeneratorStrategy::generate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
ccs 1
cts 1
cp 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManager\GeneratorStrategy;
6
7
use Laminas\Code\Generator\ClassGenerator;
8
9
/**
10
 * Generator strategy that generates the class body
11
 */
12
class BaseGeneratorStrategy implements GeneratorStrategyInterface
13
{
14
    /**
15
     * {@inheritDoc}
16
     *
17
     * @psalm-suppress MixedInferredReturnType upstream has no declared type
18 1
     */
19
    public function generate(ClassGenerator $classGenerator) : string
20 1
    {
21
        /** @psalm-suppress MixedReturnStatement upstream has no declared type */
22
        return $classGenerator->generate();
23
    }
24
}
25