Test Failed
Pull Request — master (#354)
by Mihai
03:17
created

PhiveInstallCommand::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Zalas\Toolbox\Tool\Command;
4
5
use Zalas\Toolbox\Tool\Command;
6
7
final class PhiveInstallCommand implements Command
8
{
9
    private $alias;
10
    private $bin;
11
12
    public function __construct(string $alias, string $bin)
13
    {
14
        $this->alias = $alias;
15
        $this->bin = $bin;
16
    }
17
18
    public function __toString(): string
19
    {
20
        return \sprintf('phive install -g %s -t %s', $this->alias, $this->bin);
21
    }
22
}
23