PHP Classes

File: src/Enums/TaxType.php

Recommend this page to a friend!
  Packages of Jacobo Cantorna Cigarrán   Laravel Verifactu   src/Enums/TaxType.php   Download  
File: src/Enums/TaxType.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Laravel Verifactu
Manage fiscal documents using Verifactu API
Author: By
Last change:
Date: 5 months ago
Size: 540 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

namespace
Squareetlabs\VeriFactu\Enums;

enum TaxType: string
{
    case
VAT = '01';
    case
IPSI = '02';
    case
IGIC = '03';
    case
OTHER = '05';

    public function
description(): string
   
{
        return
match($this) {
           
self::VAT => 'Value Added Tax (VAT)',
           
self::IPSI => 'Production, Services and Import Tax (IPSI) of Ceuta and Melilla',
           
self::IGIC => 'Canary Islands General Indirect Tax (IGIC)',
           
self::OTHER => 'Other taxes',
        };
    }
}