+ /**
+ * Set the execution mode
+ *
+ * @param integer $executor Execution Mode
+ * @return void
+ */
+ public function setExecutor(int $executor)
+ {
+ $this->executor = $executor;
+
+ // Daemon and worker are always backend
+ if (in_array($executor, [self::DAEMON, self::WORKER])) {
+ $this->isBackend = true;
+ }
+ }
+
+ /*isBackend = true;*
+ * get the execution mode
+ *
+ * @return int Execution Mode
+ */
+ public function getExecutor(): int
+ {
+ return $this->executor;
+ }