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

Tool   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 40
ccs 16
cts 16
cp 1
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A name() 0 3 1
A summary() 0 3 1
A testCommand() 0 3 1
A command() 0 3 1
A __construct() 0 7 1
A website() 0 3 1
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