Completed
Push — develop ( 53b1d2...e700e7 )
by Paul
03:00
created

PhpFileRenderer::invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace PhpUnitGen\Renderer;
4
5
use PhpUnitGen\Model\ModelInterface\PhpFileModelInterface;
6
use PhpUnitGen\Renderer\RendererInterface\PhpFileRendererInterface;
7
8
/**
9
 * Class PhpFileRenderer.
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 PhpFileRenderer extends AbstractPhpRenderer implements PhpFileRendererInterface
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function invoke(PhpFileModelInterface $phpFile): string
23
    {
24
        return $this->render('class.php', [
25
            'phpFile' => $phpFile,
26
            'content' => 'Mon chibre'
27
        ]);
28
    }
29
}
30