mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 20:44:03 +00:00
Add docblocks to helpers
This commit is contained in:
parent
d899dcfcce
commit
d4beae32ca
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ use Stancl\Tenancy\Tenant;
|
||||||
use Stancl\Tenancy\TenantManager;
|
use Stancl\Tenancy\TenantManager;
|
||||||
|
|
||||||
if (! \function_exists('tenancy')) {
|
if (! \function_exists('tenancy')) {
|
||||||
|
/** @return TenantManager|mixed */
|
||||||
function tenancy($key = null)
|
function tenancy($key = null)
|
||||||
{
|
{
|
||||||
if ($key) {
|
if ($key) {
|
||||||
|
|
@ -17,6 +18,7 @@ if (! \function_exists('tenancy')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! \function_exists('tenant')) {
|
if (! \function_exists('tenant')) {
|
||||||
|
/** @return Tenant|mixed */
|
||||||
function tenant($key = null)
|
function tenant($key = null)
|
||||||
{
|
{
|
||||||
if (! is_null($key)) {
|
if (! is_null($key)) {
|
||||||
|
|
@ -28,6 +30,7 @@ if (! \function_exists('tenant')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! \function_exists('tenant_asset')) {
|
if (! \function_exists('tenant_asset')) {
|
||||||
|
/** @return string */
|
||||||
function tenant_asset($asset)
|
function tenant_asset($asset)
|
||||||
{
|
{
|
||||||
return route('stancl.tenancy.asset', ['path' => $asset]);
|
return route('stancl.tenancy.asset', ['path' => $asset]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue