From a902feb57d1e7b540c68a93f4cd1a3e632c69617 Mon Sep 17 00:00:00 2001 From: marcelmanzel Date: Thu, 18 Jul 2024 13:52:09 +0200 Subject: [PATCH] Revert "OXDEV-8213 Added TheDataType" This reverts commit 419588f18d410c8ff0baad9cabc7049937bb5c36. --- src/Shared/Service/NamespaceMapper.php | 1 - src/Theme/DataType/ThemeDataType.php | 56 ------------------- .../Unit/Theme/DataType/ThemeDataTypeTest.php | 36 ------------ 3 files changed, 93 deletions(-) delete mode 100644 src/Theme/DataType/ThemeDataType.php delete mode 100644 tests/Unit/Theme/DataType/ThemeDataTypeTest.php diff --git a/src/Shared/Service/NamespaceMapper.php b/src/Shared/Service/NamespaceMapper.php index a8edcd8..5f2f6f7 100644 --- a/src/Shared/Service/NamespaceMapper.php +++ b/src/Shared/Service/NamespaceMapper.php @@ -28,7 +28,6 @@ public function getTypeNamespaceMapping(): array { return [ self::SPACE . 'Shared\\DataType' => __DIR__ . '/../../Shared/DataType/', - self::SPACE . 'Theme\\DataType' => __DIR__ . '/../../Theme/DataType/', ]; } } diff --git a/src/Theme/DataType/ThemeDataType.php b/src/Theme/DataType/ThemeDataType.php deleted file mode 100644 index af6e7da..0000000 --- a/src/Theme/DataType/ThemeDataType.php +++ /dev/null @@ -1,56 +0,0 @@ -title; - } - - #[Field] - public function getIdentifier(): string - { - return $this->identifier; - } - - #[Field] - public function getVersion(): string - { - return $this->version; - } - - #[Field] - public function getDescription(): string - { - return $this->description; - } - - #[Field] - public function isActive(): bool - { - return $this->active; - } -} diff --git a/tests/Unit/Theme/DataType/ThemeDataTypeTest.php b/tests/Unit/Theme/DataType/ThemeDataTypeTest.php deleted file mode 100644 index 469be4e..0000000 --- a/tests/Unit/Theme/DataType/ThemeDataTypeTest.php +++ /dev/null @@ -1,36 +0,0 @@ -assertSame($name, $sut->getTitle()); - $this->assertSame($identifier, $sut->getIdentifier()); - $this->assertSame($version, $sut->getVersion()); - $this->assertSame($description, $sut->getDescription()); - $this->assertSame($active, $sut->isActive()); - } -}