From af143723998fdce27b15358521b394e254200681 Mon Sep 17 00:00:00 2001 From: Max Loeb Date: Tue, 21 Mar 2017 06:25:53 -0700 Subject: [PATCH] add enum wrapper (#375) --- src/JsonSchema/ConstraintError.php | 2 +- src/JsonSchema/Enum.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/JsonSchema/Enum.php diff --git a/src/JsonSchema/ConstraintError.php b/src/JsonSchema/ConstraintError.php index 2af542d8..f1588d12 100644 --- a/src/JsonSchema/ConstraintError.php +++ b/src/JsonSchema/ConstraintError.php @@ -4,7 +4,7 @@ use JsonSchema\Exception\InvalidArgumentException; -class ConstraintError extends \MabeEnum\Enum +class ConstraintError extends Enum { const ADDITIONAL_ITEMS = 'additionalItems'; const ADDITIONAL_PROPERTIES = 'additionalProp'; diff --git a/src/JsonSchema/Enum.php b/src/JsonSchema/Enum.php new file mode 100644 index 00000000..c52f8daa --- /dev/null +++ b/src/JsonSchema/Enum.php @@ -0,0 +1,7 @@ +