Added events and Workflow entity for submissions

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2022-12-28 01:41:10 +01:00
Родитель fd2c52ffee
Коммит 7e400ccb71
1 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,28 @@
<?php
namespace OCA\Forms\Events;
use OCA\Forms\Db\Submission;
use OCP\EventDispatcher\Event;
class SubmissionEvent extends Event {
public const CREATED = 1;
public const DELETED = 2;
private int $type;
private Submission $submission;
public function __construct(int $type, Submission $submission) {
parent::__construct();
$this->type = $type;
$this->submission = $submission;
}
public function getType(): int {
return $this->type;
}
public function getSubmission(): Submission {
return $this->submission;
}
}