aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-05 23:44:36 +0900
committernsfisis <nsfisis@gmail.com>2024-07-05 23:44:36 +0900
commitc57703299b0989db501caf892e2e3331552a68ad (patch)
treedbd87e9d0f75e8e17909e58c3550b2dbb3fc5808
parent422e089207b4874f0cff25a376dc46a375953db9 (diff)
downloadphp-waddiwasi-c57703299b0989db501caf892e2e3331552a68ad.tar.gz
php-waddiwasi-c57703299b0989db501caf892e2e3331552a68ad.tar.zst
php-waddiwasi-c57703299b0989db501caf892e2e3331552a68ad.zip
refactor: move some internal classes to Internal namespace
-rw-r--r--src/BinaryFormat/Decoder.php3
-rw-r--r--src/BinaryFormat/Internal/Code.php (renamed from src/BinaryFormat/Code.php)5
-rw-r--r--src/BinaryFormat/Internal/Locals.php (renamed from src/BinaryFormat/Locals.php)5
-rw-r--r--src/BinaryFormat/Internal/SectionId.php (renamed from src/BinaryFormat/SectionId.php)5
4 files changed, 15 insertions, 3 deletions
diff --git a/src/BinaryFormat/Decoder.php b/src/BinaryFormat/Decoder.php
index 4b47b19..3c23fc8 100644
--- a/src/BinaryFormat/Decoder.php
+++ b/src/BinaryFormat/Decoder.php
@@ -4,6 +4,9 @@ declare(strict_types=1);
namespace Nsfisis\Waddiwasi\BinaryFormat;
+use Nsfisis\Waddiwasi\BinaryFormat\Internal\Code;
+use Nsfisis\Waddiwasi\BinaryFormat\Internal\Locals;
+use Nsfisis\Waddiwasi\BinaryFormat\Internal\SectionId;
use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
use Nsfisis\Waddiwasi\Structure\Instructions\Instrs;
use Nsfisis\Waddiwasi\Structure\Instructions\Instrs\Control\BlockType;
diff --git a/src/BinaryFormat/Code.php b/src/BinaryFormat/Internal/Code.php
index 6acf1e7..bc30c92 100644
--- a/src/BinaryFormat/Code.php
+++ b/src/BinaryFormat/Internal/Code.php
@@ -2,10 +2,13 @@
declare(strict_types=1);
-namespace Nsfisis\Waddiwasi\BinaryFormat;
+namespace Nsfisis\Waddiwasi\BinaryFormat\Internal;
use Nsfisis\Waddiwasi\Structure\Instructions\Instr;
+/**
+ * @internal
+ */
final readonly class Code
{
/**
diff --git a/src/BinaryFormat/Locals.php b/src/BinaryFormat/Internal/Locals.php
index de190a8..3938371 100644
--- a/src/BinaryFormat/Locals.php
+++ b/src/BinaryFormat/Internal/Locals.php
@@ -2,10 +2,13 @@
declare(strict_types=1);
-namespace Nsfisis\Waddiwasi\BinaryFormat;
+namespace Nsfisis\Waddiwasi\BinaryFormat\Internal;
use Nsfisis\Waddiwasi\Structure\Types\ValType;
+/**
+ * @internal
+ */
final readonly class Locals
{
/**
diff --git a/src/BinaryFormat/SectionId.php b/src/BinaryFormat/Internal/SectionId.php
index f11063f..301ddce 100644
--- a/src/BinaryFormat/SectionId.php
+++ b/src/BinaryFormat/Internal/SectionId.php
@@ -2,8 +2,11 @@
declare(strict_types=1);
-namespace Nsfisis\Waddiwasi\BinaryFormat;
+namespace Nsfisis\Waddiwasi\BinaryFormat\Internal;
+/**
+ * @internal
+ */
enum SectionId: int
{
case Custom = 0;