1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:34:03 +00:00

Add docblocks to helpers

This commit is contained in:
Samuel Štancl 2019-10-23 08:14:30 +02:00
parent d899dcfcce
commit d4beae32ca

View file

@ -6,6 +6,7 @@ use Stancl\Tenancy\Tenant;
use Stancl\Tenancy\TenantManager;
if (! \function_exists('tenancy')) {
/** @return TenantManager|mixed */
function tenancy($key = null)
{
if ($key) {
@ -17,6 +18,7 @@ if (! \function_exists('tenancy')) {
}
if (! \function_exists('tenant')) {
/** @return Tenant|mixed */
function tenant($key = null)
{
if (! is_null($key)) {
@ -28,6 +30,7 @@ if (! \function_exists('tenant')) {
}
if (! \function_exists('tenant_asset')) {
/** @return string */
function tenant_asset($asset)
{
return route('stancl.tenancy.asset', ['path' => $asset]);