Skip to content

Commit

Permalink
Fix docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjunges committed Jan 28, 2024
1 parent 92a7a47 commit 9a7c080
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Facades/InviteCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Facade;
use Junges\InviteCodes\Contracts\InviteCodesFactory;
use Junges\InviteCodes\Contracts\InviteContract;
use Junges\InviteCodes\Models\Invite;

/**
* Class Factory.
*
* @method static $this withoutEvents() Will dispatch no events.
* @method static $this redeem(string $code) Redeem an invite code.
* @method static InviteCodesFactory withoutEvents() Will dispatch no events.
* @method static InviteContract redeem(string $code) Redeem an invite code.
* @method static InviteCodesFactory create() Create an invite code.
* @method static $this maxUsages(int $usages = null) Set the max allowed usages for invite codes.
* @method static $this restrictUsageTo(string $email) Set the user who can use the invite code.
* @method static $this expiresAt($date) Set the invite code expiration date.
* @method static $this expiresIn(int $days) Set the invite code expiration date to $days from now.
* @method static InviteCodesFactory maxUsages(int $usages = null) Set the max allowed usages for invite codes.
* @method static InviteCodesFactory restrictUsageTo(string $email) Set the user who can use the invite code.
* @method static InviteCodesFactory expiresAt($date) Set the invite code expiration date.
* @method static InviteCodesFactory expiresIn(int $days) Set the invite code expiration date to $days from now.
* @method static Invite save() Save the invite code.
* @method static Collection make(int $quantity) Save $quantity invite codes.
* @method static Collection<int, InviteContract> make(int $quantity) Save $quantity invite codes.
* @method static void macro($name, $macro)
* @method static bool hasMacro($name)
* @method static void createInviteCodeUsing(?callable $callable = null)
* @method static $this canBeUsedOnce()
* @method static InviteCodesFactory canBeUsedOnce()
*/
class InviteCodes extends Facade
{
Expand Down

0 comments on commit 9a7c080

Please sign in to comment.