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('notifyEmail', Types::BOOLEAN); $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(), 'notifyEmail' => (bool)$this->getNotifyEmail(), 'enabled' => (bool)$this->getEnabled(), 'lastRun' => $this->getLastRun()?->format(\DateTimeInterface::ATOM), ]; } }