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: FilterOptions.php
<?php declare(strict_types=1); namespace Dcblogdev\Xero\Enums; enum FilterOptions: string { case Ids = 'ids'; case IncludeArchived = 'includeArchived'; case Order = 'order'; case Page = 'page'; case SearchTerm = 'searchTerm'; case SummaryOnly = 'summaryOnly'; case Where = 'where'; case Statuses = 'Statuses'; public static function isValid(string $value): bool { $validValues = array_map(fn (mixed $case) => $case->value, self::cases()); return in_array($value, $validValues); } }
Save
Cancel