]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Entity.php
Update Localization.php in Middleware with "no" tag for estimate.
[bookstack] / app / Entities / Entity.php
index 120290d8ff12317529bd9d60d05519189098d0c8..cc7df46d4f653e201f9ba17c72a09c0b45046577 100644 (file)
@@ -201,12 +201,10 @@ class Entity extends Ownable
     }
 
     /**
-     * Allows checking of the exact class, Used to check entity type.
-     * Cleaner method for is_a.
-     * @param $type
-     * @return bool
+     * Check if this instance or class is a certain type of entity.
+     * Examples of $type are 'page', 'book', 'chapter'
      */
-    public static function isA($type)
+    public static function isA(string $type): bool
     {
         return static::getType() === strtolower($type);
     }