mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 04:58:15 +01:00
Rename decoder
This commit is contained in:
parent
54b19eb70b
commit
b92193cda9
@ -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.
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user