Rename decoder

This commit is contained in:
Andrea Marco Sartori 2022-12-03 21:23:51 +10:00
parent 77408fec20
commit 00c0bf4a0b
2 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ use Cerbero\JsonParser\Config;
* The configurable decoder.
*
*/
class ConfigurableDecoder
class CustomDecoder
{
/**
* Instantiate the class.

View File

@ -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);
}
/**