BootstrapImportationTaskFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 5
dl 0
loc 16
ccs 8
cts 8
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 9 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