plugin updates

This commit is contained in:
Tony Volpe
2024-06-17 15:33:26 -04:00
parent 3751a5a1a6
commit e4e274a9a7
2674 changed files with 0 additions and 507851 deletions

View File

@@ -1,43 +0,0 @@
<?php
/**
* Manage Enums.
*
* @link https://makewebbetter.com/
* @since 1.0.0
*
* @package makewebbetter-hubspot-for-woocommerce
* @subpackage makewebbetter-hubspot-for-woocommerce/includes/classes
*/
/**
* Manage Enums.
*
* @package makewebbetter-hubspot-for-woocommerce
* @subpackage makewebbetter-hubspot-for-woocommerce/includes/classes
*/
abstract class HubWooEnum {
/**
* Register all of the Enums.
*
* @since 1.0.4
* @param any $value value for the enum.
* @throws IllegalArgumentException If the value is illegal.
*/
final public function __construct( $value ) {
$c = new ReflectionClass( $this );
if ( ! in_array( $value, $c->getConstants() ) ) {
throw IllegalArgumentException();
}
$this->value = $value;
}
/**
* Conver the Enum value to String.
*
* @since 1.0.4
*/
final public function __toString() {
return $this->value;
}
}