summaryrefslogtreecommitdiff
path: root/frontend/Version.php
diff options
context:
space:
mode:
authorCamil Staps2017-02-07 17:49:10 +0100
committerCamil Staps2017-02-07 17:49:10 +0100
commitb46cee71f79795f7300c275f2cfea7fca27a752d (patch)
treeb5cb3efe092ba606ddfd6b90c16f144c219d74c7 /frontend/Version.php
parentDockerise (diff)
Web interface
Diffstat (limited to 'frontend/Version.php')
-rw-r--r--frontend/Version.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/frontend/Version.php b/frontend/Version.php
new file mode 100644
index 0000000..39d3dd2
--- /dev/null
+++ b/frontend/Version.php
@@ -0,0 +1,10 @@
+<?php
+class Version extends Model {
+ public static
+ $table = 'version',
+ $fillable_columns = ['major', 'minor', 'revision', 'depends'];
+
+ public function getPackage() {
+ return new Package($this->pdo, $this->package_id);
+ }
+}