BootstrapImportationTaskFactory::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
ccs 8
cts 8
cp 1
rs 9.6666
c 1
b 0
f 0
cc 1
eloc 6
nc 1
nop 1
crap 1
1
<?php
2
namespace Samurai\Project\Task\Factory;
3
4
use Pimple\Container;
5
use Samurai\Project\Task\ComposerConfigSetting;
6
use Samurai\Project\Task\FilesCleaning;
7
use Samurai\Project\Task\BootstrapImportation;
8
use Samurai\Project\Task\ModulesRunning;
9
use Samurai\Task\ITask;
10
use Samurai\Task\Planner;
11
12
/**
13
 * Class ProjectCreation
14
 * @package Samurai\Project\Task\Factory
15
 * @author Raphaël Lefebvre <[email protected]>
16
 */
17
class BootstrapImportationTaskFactory
18
{
19
    /**
20
     * @param Container $services
21
     * @return ITask
22
     */
23 2
    public function create(Container $services)
24
    {
25 2
        return new Planner([
26 2
            ProjectInitializationTaskFactory::create($services),
27 2
            new BootstrapImportation($services),
28 2
            new ComposerConfigSetting($services),
29 2
            new ModulesRunning($services),
30 2
        ]);
31 1
    }
32
}
33