PHP Classes

File: enums/WalletStatusEnum.php

Recommend this page to a friend!
  Classes of Neeraj Saini   Laravel Virtual Wallet   enums/WalletStatusEnum.php   Download  
File: enums/WalletStatusEnum.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Laravel Virtual Wallet
Manage money amounts stored in a wallet
Author: By
Last change:
Date: 8 days ago
Size: 1,117 bytes
 

Contents

Class file image Download
<?php

namespace App\Enums;

use
Haxneeraj\LaravelVirtualWallet\Traits\EnumTrait;

/**
 * WalletStatusEnum represents different statuses of wallets within the application.
 *
 * - **Active**: Indicates that the wallet is currently active and usable.
 * - **Inactive**: Indicates that the wallet is currently inactive and not usable.
 *
 * This enum uses the EnumTrait to provide additional functionality for interacting with the enum values, such as validation and other methods.
 *
 * @author Neeraj Saini
 * @email hax-neeraj@outlook.com
 * @github https://github.com/haxneeraj/
 * @linkedin https://www.linkedin.com/in/hax-neeraj/
 */
enum WalletStatusEnum: string
{
    use
EnumTrait;

   
/**
     * Enum case representing an active wallet.
     *
     * The active status indicates that the wallet is currently enabled and available for transactions.
     */
   
case ACTIVE = 'active';

   
/**
     * Enum case representing an inactive wallet.
     *
     * The inactive status indicates that the wallet is currently disabled and not available for transactions.
     */
   
case INACTIVE = 'inactive';
}