From 00c0bf4a0b946ffe831e35032b4b96b506e6a3d9 Mon Sep 17 00:00:00 2001 From: Andrea Marco Sartori Date: Sat, 3 Dec 2022 21:23:51 +1000 Subject: [PATCH] Rename decoder --- .../{ConfigurableDecoder.php => CustomDecoder.php} | 2 +- src/Parser.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/Decoders/{ConfigurableDecoder.php => CustomDecoder.php} (96%) diff --git a/src/Decoders/ConfigurableDecoder.php b/src/Decoders/CustomDecoder.php similarity index 96% rename from src/Decoders/ConfigurableDecoder.php rename to src/Decoders/CustomDecoder.php index e9a099b..c7a181f 100644 --- a/src/Decoders/ConfigurableDecoder.php +++ b/src/Decoders/CustomDecoder.php @@ -8,7 +8,7 @@ use Cerbero\JsonParser\Config; * The configurable decoder. * */ -class ConfigurableDecoder +class CustomDecoder { /** * Instantiate the class. diff --git a/src/Parser.php b/src/Parser.php index db450a0..ac60843 100644 --- a/src/Parser.php +++ b/src/Parser.php @@ -2,7 +2,7 @@ namespace Cerbero\JsonParser; -use Cerbero\JsonParser\Decoders\ConfigurableDecoder; +use Cerbero\JsonParser\Decoders\CustomDecoder; use Cerbero\JsonParser\Sources\Source; use IteratorAggregate; use Traversable; @@ -23,9 +23,9 @@ class Parser implements IteratorAggregate /** * The decoder handling potential errors. * - * @var ConfigurableDecoder + * @var CustomDecoder */ - protected ConfigurableDecoder $decoder; + protected CustomDecoder $decoder; /** * Instantiate the class. @@ -36,7 +36,7 @@ class Parser implements IteratorAggregate public function __construct(protected Lexer $lexer, protected Config $config) { $this->state = new State(); - $this->decoder = new ConfigurableDecoder($config); + $this->decoder = new CustomDecoder($config); } /**