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;
* @var bool
private $isExpendable;
* @var string|null
private $fifoGroupId;
* @param string $name
* @param string $body
* @param DateTimeImmutable $createdAt
public function __construct(string $name, string $body, DateTimeImmutable $createdAt, bool $isExpendable, string $fifoGroupId = null)
$this->name = $name;
$this->body = $body;
$this->createdAt = $createdAt;
$this->isExpendable = $isExpendable;
$this->fifoGroupId = $fifoGroupId;
}
* @return int|null
public function id(): ?int
return $this->id;
* @return string
public function name(): string
return $this->name;
public function body(): string
return $this->body;
* @return DateTimeImmutable
public function createdAt(): DateTimeImmutable
return $this->createdAt;
* @return bool
public function isExpendable(): bool
return $this->isExpendable;
* @return null|string
public function fifoGroupId(): ?string
return $this->fifoGroupId;