47 protected int $delay = -1,
48 protected int $period = -1,
49 ?
string $ownerName =
null
52 throw new \InvalidArgumentException(
"Cannot assign multiple handlers to the same task");
54 $this->taskName = $task->getName();
55 $this->ownerName = $ownerName ??
"Unknown";
56 $this->timings = Timings::getScheduledTaskTimings($this, $period);
57 $this->task->setHandler($this);