Add docblock

This commit is contained in:
Marcus Moore 2024-02-05 12:49:29 -08:00
parent 76cc5995d9
commit 9e6e2de71e
No known key found for this signature in database

View file

@ -113,6 +113,14 @@ final class Company extends SnipeModel
} }
} }
/**
* Get the company id for the current user taking into
* account the full multiple company support setting
* and if the current user is a super user.
*
* @param $unescaped_input
* @return int|mixed|string|null
*/
public static function getIdForCurrentUser($unescaped_input) public static function getIdForCurrentUser($unescaped_input)
{ {
if (! static::isFullMultipleCompanySupportEnabled()) { if (! static::isFullMultipleCompanySupportEnabled()) {