Completed
Push — develop ( a0b2b6...96900c )
by Paul
02:40
created

Executor::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PhpUnitGen\Executor;
4
5
use PhpUnitGen\Executor\ExecutorInterface\ExecutorInterface;
6
use PhpUnitGen\Parser\ParserInterface\PhpFileParserInterface;
7
8
/**
9
 * Class Executor.
10
 *
11
 * @author     Paul Thébaud <[email protected]>.
12
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
13
 * @license    https://opensource.org/licenses/MIT The MIT license.
14
 * @link       https://github.com/paul-thebaud/phpunit-generator
15
 * @since      Class available since Release 2.0.0.
16
 */
17
class Executor implements ExecutorInterface
18
{
19
    /**
20
     * @var PhpFileParserInterface $phpFileParser The php file parser.
21
     */
22
    private $phpFileParser;
23
24
    public function __construct(
25
        PhpFileParserInterface $phpFileParser
26
    ) {
27
        $this->phpFileParser = $phpFileParser;
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function execute(string $code): string
34
    {
35
        $phpFileModel = $this->phpFileParser->parse($code);
0 ignored issues
show
Unused Code introduced by
The assignment to $phpFileModel is dead and can be removed.
Loading history...
36
37
        /** @todo ... */
38
39
        return '';
40
    }
41
}