]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Verb.php
Merge pull request #12547 from MrPetovan/bug/12545-plink-zindex
[friendica.git] / src / Model / Verb.php
index 6109691cd7fc870b5804175fa8a0c515e41f8432..17145adfe71458667c07e0c804a9818fed49ac9d 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -34,7 +34,7 @@ class Verb
         * @return integer verb id
         * @throws \Exception
         */
-       public static function getID(string $verb)
+       public static function getID(string $verb): int
        {
                if (empty($verb)) {
                        return 0;
@@ -56,7 +56,7 @@ class Verb
         * @param integer $id
         * @return string verb
         */
-       public static function getByID(int $id)
+       public static function getByID(int $id): string
        {
                if (empty($id)) {
                        return '';