From db440b90c82e7b0eddcdc60397d132284f4bc6c4 Mon Sep 17 00:00:00 2001 From: Thomas Ploch Date: Fri, 16 Oct 2020 10:13:16 +0200 Subject: [PATCH] Renaming `ValueObject` to `SchemaTypes` --- src/Schemas/AvroSchemaType.php | 2 +- src/Schemas/JsonSchemaType.php | 2 +- src/Schemas/ProtobufSchemaType.php | 2 +- src/Schemas/SchemaTypes.php | 34 ++++++++++++++++++++++++++++++ src/Schemas/ValueObject.php | 19 ----------------- 5 files changed, 37 insertions(+), 22 deletions(-) create mode 100644 src/Schemas/SchemaTypes.php delete mode 100644 src/Schemas/ValueObject.php diff --git a/src/Schemas/AvroSchemaType.php b/src/Schemas/AvroSchemaType.php index fbe2104..785ccc1 100644 --- a/src/Schemas/AvroSchemaType.php +++ b/src/Schemas/AvroSchemaType.php @@ -9,7 +9,7 @@ /** * @implements SchemaType */ -final class AvroSchemaType extends ValueObject implements SchemaType +final class AvroSchemaType extends SchemaTypes implements SchemaType { /** * @var AvroSchemaType diff --git a/src/Schemas/JsonSchemaType.php b/src/Schemas/JsonSchemaType.php index 8f27113..ae6bc07 100644 --- a/src/Schemas/JsonSchemaType.php +++ b/src/Schemas/JsonSchemaType.php @@ -9,7 +9,7 @@ /** * @implements SchemaType */ -final class JsonSchemaType extends ValueObject implements SchemaType +final class JsonSchemaType extends SchemaTypes implements SchemaType { /** * @var JsonSchemaType diff --git a/src/Schemas/ProtobufSchemaType.php b/src/Schemas/ProtobufSchemaType.php index 389bd70..d7420fd 100644 --- a/src/Schemas/ProtobufSchemaType.php +++ b/src/Schemas/ProtobufSchemaType.php @@ -9,7 +9,7 @@ /** * @implements SchemaType */ -final class ProtobufSchemaType extends ValueObject implements SchemaType +final class ProtobufSchemaType extends SchemaTypes implements SchemaType { /** * @var ProtobufSchemaType diff --git a/src/Schemas/SchemaTypes.php b/src/Schemas/SchemaTypes.php new file mode 100644 index 0000000..75b4abe --- /dev/null +++ b/src/Schemas/SchemaTypes.php @@ -0,0 +1,34 @@ +