ComposerGenerator::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
crap 1
1
<?php namespace Packedge\Workbench\Generators;
2
3
use Illuminate\Filesystem\Filesystem;
4
use Mustache_Engine;
5
6
class ComposerGenerator extends BaseGenerator implements GeneratorInterface
7
{
8
    /**
9
     * @param Filesystem $filesystem
10
     * @param Mustache_Engine $mustache
11
     */
12 6
    public function __construct(Filesystem $filesystem = null, Mustache_Engine $mustache = null)
13
    {
14 6
        parent::__construct($filesystem, $mustache);
15 6
        $this->templatePath = 'composer.txt';
16 6
        $this->outputPath = 'composer.json';
17
    }
18
}