| 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 | * @param string $name |
||
| 31 | * @param string $body |
||
| 32 | * @param DateTimeImmutable $createdAt |
||
| 33 | */ |
||
| 34 | 7 | public function __construct(string $name, string $body, DateTimeImmutable $createdAt) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return int|null |
||
| 43 | */ |
||
| 44 | 4 | public function id(): ?int |
|
| 48 | } |
||
| 49 |