update plugins

This commit is contained in:
Tony Volpe
2024-06-17 14:42:23 -04:00
parent a00f379f7f
commit 38e314323c
9467 changed files with 2032414 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
<?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;
}
}