1 | <?php |
||
7 | class StoredJob |
||
8 | { |
||
9 | /** |
||
10 | * @var int|null |
||
11 | */ |
||
12 | protected $id; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $name; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $body; |
||
23 | |||
24 | /** |
||
25 | * @var DateTimeImmutable |
||
26 | */ |
||
27 | private $createdAt; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $isExpendable; |
||
33 | |||
34 | /** |
||
35 | * @var string|null |
||
36 | */ |
||
37 | private $fifoGroupId; |
||
38 | |||
39 | /** |
||
40 | * @param string $name |
||
41 | * @param string $body |
||
42 | * @param DateTimeImmutable $createdAt |
||
43 | */ |
||
44 | 10 | public function __construct(string $name, string $body, DateTimeImmutable $createdAt, bool $isExpendable, string $fifoGroupId = null) |
|
52 | |||
53 | /** |
||
54 | * @return int|null |
||
55 | */ |
||
56 | 9 | public function id(): ?int |
|
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 6 | public function name(): string |
|
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | 1 | public function body(): string |
|
76 | |||
77 | /** |
||
78 | * @return DateTimeImmutable |
||
79 | */ |
||
80 | 1 | public function createdAt(): DateTimeImmutable |
|
84 | |||
85 | /** |
||
86 | * @return bool |
||
87 | */ |
||
88 | public function isExpendable(): bool |
||
92 | |||
93 | /** |
||
94 | * @return null|string |
||
95 | */ |
||
96 | 2 | public function fifoGroupId(): ?string |
|
100 | } |
||
101 |