Skip to content

Commit

Permalink
Update Matrix.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed May 28, 2022
1 parent fdcd031 commit baf5388
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions src/ValueObject/Matrix.php
Expand Up @@ -6,4 +6,63 @@

final class Matrix
{
/**
* @var array{
* exclude:list<string>,
* include:list<string>,
* }
*/
private array $data = [
'include' => [],
'exclude' => [],
];

private string $dependencies;

private string $job;

private string $name;

private string $os;

public function __construct(string $name, string $os, string $job, string $dependencies)
{
$this->name = $name;
$this->os = $os;
$this->job = $job;
$this->dependencies = $dependencies;
}

public function addJob(Job $job): void
{
//
$this->data['include'] = $job::class;

$this->data['exclude'] = $job::class;
}

public function getData(): array
{
return $this->data;
}

public function getDependencies(): string
{
return $this->dependencies;
}

public function getJob(): string
{
return $this->job;
}

public function getName(): string
{
return $this->name;
}

public function getOs(): string
{
return $this->os;
}
}

0 comments on commit baf5388

Please sign in to comment.