Rename decoder

This commit is contained in:
Andrea Marco Sartori 2022-12-03 20:32:57 +10:00
parent 54b19eb70b
commit b92193cda9
2 changed files with 6 additions and 6 deletions

View File

@ -5,10 +5,10 @@ namespace Cerbero\JsonParser\Decoders;
use Cerbero\JsonParser\Config;
/**
* The decoder handling potential decoding errors.
* The configurable decoder.
*
*/
class ConfiguredDecoder
class ConfigurableDecoder
{
/**
* Instantiate the class.

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser;
use Cerbero\JsonParser\Decoders\ConfiguredDecoder;
use Cerbero\JsonParser\Decoders\ConfigurableDecoder;
use Cerbero\JsonParser\Sources\Source;
use IteratorAggregate;
use Traversable;
@ -23,9 +23,9 @@ class Parser implements IteratorAggregate
/**
* The decoder handling potential errors.
*
* @var ConfiguredDecoder
* @var ConfigurableDecoder
*/
protected ConfiguredDecoder $decoder;
protected ConfigurableDecoder $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 ConfiguredDecoder($config);
$this->decoder = new ConfigurableDecoder($config);
}
/**