BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
dcblogdev
/
laravel-xero
/
src
/
Enums
📤 Upload
📝 New File
📁 New Folder
Close
Editing: InvoiceLineAmountType.php
<?php declare(strict_types=1); namespace Dcblogdev\Xero\Enums; enum InvoiceLineAmountType: string { case Exclusive = 'Exclusive'; case Inclusive = 'Inclusive'; case NoTax = 'NoTax'; public static function isValid(string $value): bool { $validValues = array_map(fn (mixed $case) => $case->value, self::cases()); return in_array($value, $validValues); } }
Save
Cancel