for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Zalas\Toolbox\Tool;
class Tool
{
private string $name;
private string $summary;
private string $website;
private Command $command;
private Command $testCommand;
private array $tags;
public function __construct(string $name, string $summary, string $website, array $tags, Command $command, Command $testCommand)
$this->name = $name;
$this->summary = $summary;
$this->website = $website;
$this->tags = \array_map(function (string $tag) {
return $tag;
}, $tags);
$this->command = $command;
$this->testCommand = $testCommand;
}
public function name(): string
return $this->name;
public function summary(): string
return $this->summary;
public function website(): string
return $this->website;
public function command(): Command
return $this->command;
public function testCommand(): Command
return $this->testCommand;
/**
* @return array|string[]
*/
public function tags(): array
return $this->tags;