diff options
Diffstat (limited to 'app/Event/ProjectFileEvent.php')
-rw-r--r-- | app/Event/ProjectFileEvent.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/Event/ProjectFileEvent.php b/app/Event/ProjectFileEvent.php new file mode 100644 index 00000000..e1d29c48 --- /dev/null +++ b/app/Event/ProjectFileEvent.php @@ -0,0 +1,15 @@ +<?php + +namespace Kanboard\Event; + +class ProjectFileEvent extends GenericEvent +{ + public function getProjectId() + { + if (isset($this->container['file']['project_id'])) { + return $this->container['file']['project_id']; + } + + return null; + } +} |