]> BookStack Code Mirror - bookstack/blobdiff - app/PageRevision.php
Added migration file.
[bookstack] / app / PageRevision.php
index ff469f0ed3a78b3d3750c3ff6d07b6b2d787c226..0a9764729dded7bca21748e581605fba61887565 100644 (file)
@@ -47,4 +47,16 @@ class PageRevision extends Model
         return null;
     }
 
+    /**
+     * Allows checking of the exact class, Used to check entity type.
+     * Included here to align with entities in similar use cases.
+     * (Yup, Bit of an awkward hack)
+     * @param $type
+     * @return bool
+     */
+    public static function isA($type)
+    {
+        return $type === 'revision';
+    }
+
 }