PHP Classes

File: app/Enums/CartStatus.php

Recommend this page to a friend!
  Classes of Hicri   Laravel Simple E-commerce   app/Enums/CartStatus.php   Download  
File: app/Enums/CartStatus.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Laravel Simple E-commerce
Show and sell products on a Web site
Author: By
Last change:
Date: Yesterday
Size: 252 bytes
 

Contents

Class file image Download
<?php

namespace App\Enums;

enum CartStatus
{
    case
ACTIVE;
    case
PASSIVE;

    public function
label(): string
   
{
        return
match ($this) {
           
self::ACTIVE => 'Active',
           
self::PASSIVE => 'Passive'
       
};
    }
}