generated from ghostwriter/wip
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Matrix.php
68 lines (53 loc) · 1.17 KB
/
Matrix.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
declare(strict_types=1);
namespace Ghostwriter\Compliance\ValueObject;
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;
}
}