Passed
Push — master ( df446a...4986ba )
by Jakub
02:29 queued 10s
created

Tool::import()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Zalas\Toolbox\Tool;
4
5
class Tool
6
{
7
    private $name;
8
    private $summary;
9
    private $website;
10
    private $command;
11
    private $testCommand;
12
13 14
    public function __construct(string $name, string $summary, string $website, Command $command, Command $testCommand)
14
    {
15 14
        $this->name = $name;
16 14
        $this->summary = $summary;
17 14
        $this->website = $website;
18 14
        $this->command = $command;
19 14
        $this->testCommand = $testCommand;
20
    }
21
22 4
    public function name(): string
23
    {
24 4
        return $this->name;
25
    }
26
27 3
    public function summary(): string
28
    {
29 3
        return $this->summary;
30
    }
31
32 3
    public function website(): string
33
    {
34 3
        return $this->website;
35
    }
36
37 9
    public function command(): Command
38
    {
39 9
        return $this->command;
40
    }
41
42 2
    public function testCommand(): Command
43
    {
44 2
        return $this->testCommand;
45
    }
46
}
47