WebAppInstaller   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 15
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A install() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Antidot\Installer\ApplicationType;
6
7
use Antidot\Installer\Template\ComposerJson;
8
use Composer\Composer;
9
use Composer\IO\IOInterface;
10
11
class WebAppInstaller implements App
12
{
13
    /** @var IOInterface */
14
    private IOInterface $io;
15
    /** @var ComposerJson */
16
    private ComposerJson $manipulator;
17
18 2
    public function __construct(IOInterface $io, ComposerJson $manipulator)
19
    {
20 2
        $this->io = $io;
21 2
        $this->manipulator = $manipulator;
22 2
    }
23
24 1
    public function install(string $installationPath): void
25
    {
26
        // TODO: Implement install() method.
27 1
    }
28
}
29