mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-01-28 00:38:41 +00:00
Add docblock
This commit is contained in:
parent
0519a59f8a
commit
6926c00775
|
|
@ -117,6 +117,15 @@ final class ApiController extends Controller
|
|||
return $mediaCreated;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a random file path to store media files
|
||||
*
|
||||
* @param string $basePath Base path for file storage
|
||||
*
|
||||
* @return string Random path to store media files
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function createMediaPath(string $basePath = 'Modules/Media/Files') : string
|
||||
{
|
||||
$rndPath = \str_pad(\dechex(\mt_rand(0, 65535)), 4, '0', STR_PAD_LEFT);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user