public function __construct($command, \DateTimeInterface $dateTime, string $id = null) { $this->command = $command; $this->dateTime = $dateTime; $this->id = $id; }