From c446712d0880c27bdd797fe234ed5a70b3636a0b Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 17 Apr 2020 07:58:54 +0000 Subject: [PATCH] Added documentation --- src/Model/Tag.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Model/Tag.php b/src/Model/Tag.php index 43885e493a..9c9ac033f0 100644 --- a/src/Model/Tag.php +++ b/src/Model/Tag.php @@ -54,6 +54,14 @@ class Tag self::EXCLUSIVE_MENTION => '!', ]; + /** + * Store tag/mention elements + * + * @param integer $uriid + * @param integer $type + * @param string $name + * @param string $url + */ public static function store(int $uriid, int $type, string $name, string $url = '') { $name = trim($name, "\x00..\x20\xFF#!@"); @@ -85,6 +93,14 @@ class Tag Logger::info('Stored tag/mention', ['uri-id' => $uriid, 'tag-id' => $tagid, 'tag' => $fields]); } + /** + * Store tag/mention elements + * + * @param integer $uriid + * @param string $hash + * @param string $name + * @param string $url + */ public static function storeByHash(int $uriid, string $hash, string $name, string $url = '') { if ($hash == self::TAG_CHARACTER[self::MENTION]) { -- 2.39.5