File manager - Edit - /home/verseaumee/www/plugins/vmcalculation/avalara/classes/Enum.class.php
Back
<?php /** * Enum.class.php */ /** * Abstract class for enumerated types - provides validation. * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Base */ class Enum { // Basic implementation - check and throw protected static function __Validate($value,$values,$class=__CLASS__) { foreach($values as $valid) { if($value == $valid) { return true; } } throw new Exception('Invalid '.$class.' "'.$value.'" - must be one of "'.implode('"|"',$values).'"'); } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings