ComposerGenerator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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
}