for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Shippinno\Job\Domain\Model;
use DateTimeImmutable;
class StoredJob
{
/**
* @var int|null
*/
protected $id;
* @var string
private $name;
private $body;
* @var DateTimeImmutable
private $createdAt;
* @param string $name
* @param string $body
* @param DateTimeImmutable $createdAt
public function __construct(string $name, string $body, DateTimeImmutable $createdAt)
$this->name = $name;
$this->body = $body;
$this->createdAt = $createdAt;
}
* @return int|null
public function id(): ?int
return $this->id;