addType('id', Types::INTEGER); $this->addType('userId', Types::STRING); $this->addType('title', Types::STRING); $this->addType('boardId', Types::INTEGER); $this->addType('sourceStackId', Types::INTEGER); $this->addType('targetStackId', Types::INTEGER); $this->addType('triggerDate', Types::STRING); $this->addType('notifyMode', Types::STRING); $this->addType('notifyChannel', Types::STRING); $this->addType('enabled', Types::BOOLEAN); $this->addType('lastRun', Types::DATETIME); } public function jsonSerialize(): array { return [ 'id' => $this->getId(), 'userId' => $this->getUserId(), 'title' => $this->getTitle(), 'boardId' => $this->getBoardId(), 'sourceStackId' => $this->getSourceStackId(), 'targetStackId' => $this->getTargetStackId(), 'triggerDate' => (string)$this->getTriggerDate(), 'notifyMode' => (string)$this->getNotifyMode(), 'notifyChannel' => (string)$this->getNotifyChannel(), 'enabled' => (bool)$this->getEnabled(), 'lastRun' => $this->getLastRun()?->format(\DateTimeInterface::ATOM), ]; } }