Move classes around

This commit is contained in:
Andrea Marco Sartori 2023-03-22 15:28:57 +10:00
parent 5d23f83e69
commit 672f6953be
20 changed files with 28 additions and 19 deletions

View File

@ -2,8 +2,8 @@
namespace Cerbero\JsonParser\Decoders;
use Cerbero\JsonParser\Config;
use Cerbero\JsonParser\Parser;
use Cerbero\JsonParser\Tokens\Parser;
use Cerbero\JsonParser\ValueObjects\Config;
/**
* The configurable decoder.

View File

@ -7,6 +7,9 @@ use Cerbero\JsonParser\Decoders\Decoder;
use Cerbero\JsonParser\Exceptions\SyntaxException;
use Cerbero\JsonParser\Pointers\Pointer;
use Cerbero\JsonParser\Sources\AnySource;
use Cerbero\JsonParser\Tokens\Parser;
use Cerbero\JsonParser\ValueObjects\Config;
use Cerbero\JsonParser\ValueObjects\Progress;
use Closure;
use IteratorAggregate;
use Traversable;

View File

@ -3,7 +3,7 @@
namespace Cerbero\JsonParser\Pointers;
use Cerbero\JsonParser\Exceptions\InvalidPointerException;
use Cerbero\JsonParser\Tree;
use Cerbero\JsonParser\ValueObjects\Tree;
use Closure;
use Stringable;

View File

@ -3,7 +3,7 @@
namespace Cerbero\JsonParser\Pointers;
use Cerbero\JsonParser\Exceptions\IntersectingPointersException;
use Cerbero\JsonParser\Tree;
use Cerbero\JsonParser\ValueObjects\Tree;
use function count;

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Sources;
use Cerbero\JsonParser\Config;
use Cerbero\JsonParser\ValueObjects\Config;
use IteratorAggregate;
use Traversable;

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\State;
use Cerbero\JsonParser\ValueObjects\State;
/**
* The colon token.

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\State;
use Cerbero\JsonParser\ValueObjects\State;
/**
* The comma token.

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\State;
use Cerbero\JsonParser\ValueObjects\State;
/**
* The token that begins compound data (JSON arrays or objects).

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\State;
use Cerbero\JsonParser\ValueObjects\State;
/**
* The token that ends compound data (JSON arrays or objects).

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\State;
use Cerbero\JsonParser\ValueObjects\State;
/**
* The constant token.

View File

@ -1,12 +1,13 @@
<?php
namespace Cerbero\JsonParser;
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\Exceptions\SyntaxException;
use Cerbero\JsonParser\Sources\Source;
use Cerbero\JsonParser\Tokens\Token;
use Cerbero\JsonParser\Tokens\Tokenizer;
use Cerbero\JsonParser\Tokens\Tokens;
use Cerbero\JsonParser\ValueObjects\Progress;
use IteratorAggregate;
use Traversable;

View File

@ -1,6 +1,6 @@
<?php
namespace Cerbero\JsonParser;
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\Decoders\ConfigurableDecoder;
use Cerbero\JsonParser\Exceptions\SyntaxException;
@ -8,6 +8,9 @@ use Cerbero\JsonParser\Sources\Source;
use Cerbero\JsonParser\Tokens\CompoundBegin;
use Cerbero\JsonParser\Tokens\CompoundEnd;
use Cerbero\JsonParser\Tokens\Token;
use Cerbero\JsonParser\ValueObjects\Config;
use Cerbero\JsonParser\ValueObjects\Progress;
use Cerbero\JsonParser\ValueObjects\State;
use Generator;
use IteratorAggregate;
use Traversable;

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\State;
use Cerbero\JsonParser\ValueObjects\State;
/**
* The scalar string token.

View File

@ -2,7 +2,7 @@
namespace Cerbero\JsonParser\Tokens;
use Cerbero\JsonParser\State;
use Cerbero\JsonParser\ValueObjects\State;
use Stringable;
/**

View File

@ -1,6 +1,6 @@
<?php
namespace Cerbero\JsonParser;
namespace Cerbero\JsonParser\ValueObjects;
use Cerbero\JsonParser\Decoders\JsonDecoder;
use Cerbero\JsonParser\Decoders\DecodedValue;

View File

@ -1,6 +1,6 @@
<?php
namespace Cerbero\JsonParser;
namespace Cerbero\JsonParser\ValueObjects;
use function is_null;

View File

@ -1,9 +1,10 @@
<?php
namespace Cerbero\JsonParser;
namespace Cerbero\JsonParser\ValueObjects;
use Cerbero\JsonParser\Pointers\Pointers;
use Cerbero\JsonParser\Tokens\CompoundBegin;
use Cerbero\JsonParser\Tokens\Parser;
use Cerbero\JsonParser\Tokens\Token;
use Cerbero\JsonParser\Tokens\Tokens;
use Closure;

View File

@ -1,6 +1,6 @@
<?php
namespace Cerbero\JsonParser;
namespace Cerbero\JsonParser\ValueObjects;
use Cerbero\JsonParser\Pointers\Pointers;
use Cerbero\JsonParser\Tokens\Token;

View File

@ -5,6 +5,7 @@ namespace Cerbero\JsonParser;
use Cerbero\JsonParser\Decoders\DecodedValue;
use Cerbero\JsonParser\Sources\Endpoint;
use Cerbero\JsonParser\Sources\Psr7Request;
use Cerbero\JsonParser\Tokens\Parser;
use DirectoryIterator;
use Generator;
use Mockery;

View File

@ -1,6 +1,6 @@
<?php
use Cerbero\JsonParser\Parser;
use Cerbero\JsonParser\Tokens\Parser;
if (!function_exists('fixture')) {
/**