Browse Source

moved namespaces from `DeegraphPHP` to `DeegraphInteractions`

pull/4/head
Cerys 5 months ago
parent
commit
c63c1e11e8
  1. 2
      composer.json
  2. 8
      src/Attributes/QueryBuilderQuery.php
  3. 3
      src/Attributes/QueryBuilderRequiredField.php
  4. 10
      src/Core/DeegraphServer.php
  5. 2
      src/DataStructures/QueryResponseWrapper.php
  6. 2
      src/DataStructures/ServerInfo.php
  7. 2
      src/Enumerators/DeegraphEqualityOperator.php
  8. 2
      src/Enumerators/DeegraphLogicalOperators.php
  9. 2
      src/Enumerators/DeegraphNumericalComparitor.php
  10. 2
      src/Exceptions/QueryBuilderConflictingFieldAlreadyExistsException.php
  11. 2
      src/Exceptions/QueryBuilderInvalidDeegraphPathException.php
  12. 2
      src/Exceptions/QueryBuilderInvalidInputException.php
  13. 2
      src/Exceptions/QueryBuilderRequiredFieldIsNotSetException.php
  14. 8
      src/QueryBuilder/QueryBuilder.php
  15. 7
      src/QueryBuilder/QueryBuilderTrait.php
  16. 8
      src/QueryBuilder/QueryBuilders/InsertQuery.php
  17. 11
      src/QueryBuilder/QueryBuilders/PutQuery.php
  18. 12
      src/QueryBuilder/QueryBuilders/SelectQuery.php
  19. 4
      tests/QueryBuilderPutTest.php

2
composer.json

@ -17,7 +17,7 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Darksparrow\\DeegraphPHP\\": "src/" "Darksparrow\\DeegraphInteractions\\": "src/"
} }
}, },
"require": { "require": {

8
src/Attributes/QueryBuilderQuery.php

@ -1,10 +1,10 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Attributes; namespace Darksparrow\DeegraphInteractions\Attributes;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\InsertQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\InsertQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\PutQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\PutQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\SelectQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\SelectQuery;
use PhpParser\Node\Attribute; use PhpParser\Node\Attribute;
use PhpParser\Node\Name; use PhpParser\Node\Name;
use ReflectionClass; use ReflectionClass;

3
src/Attributes/QueryBuilderRequiredField.php

@ -1,10 +1,9 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Attributes; namespace Darksparrow\DeegraphInteractions\Attributes;
use PhpParser\Node\Attribute; use PhpParser\Node\Attribute;
use PhpParser\Node\Name; use PhpParser\Node\Name;
use ReflectionClass;
#[\Attribute] class QueryBuilderRequiredField extends Attribute #[\Attribute] class QueryBuilderRequiredField extends Attribute
{ {

10
src/Core/DeegraphServer.php

@ -2,11 +2,11 @@
namespace Darksparrow\DeegraphPHP\Core; namespace Darksparrow\DeegraphPHP\Core;
use Darksparrow\DeegraphPHP\DataStructures\QueryResponseWrapper; use Darksparrow\DeegraphInteractions\DataStructures\QueryResponseWrapper;
use Darksparrow\DeegraphPHP\DataStructures\ServerInfo; use Darksparrow\DeegraphInteractions\DataStructures\ServerInfo;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\InsertQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\InsertQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\PutQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\PutQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\SelectQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\SelectQuery;
class DeegraphServer class DeegraphServer
{ {

2
src/DataStructures/QueryResponseWrapper.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\DataStructures; namespace Darksparrow\DeegraphInteractions\DataStructures;
class QueryResponseWrapper class QueryResponseWrapper
{ {

2
src/DataStructures/ServerInfo.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\DataStructures; namespace Darksparrow\DeegraphInteractions\DataStructures;
class ServerInfo class ServerInfo
{ {

2
src/Enumerators/DeegraphEqualityOperator.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Enumerators; namespace Darksparrow\DeegraphInteractions\Enumerators;
enum DeegraphEqualityOperator: string enum DeegraphEqualityOperator: string
{ {

2
src/Enumerators/DeegraphLogicalOperators.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Enumerators; namespace Darksparrow\DeegraphInteractions\Enumerators;
enum DeegraphLogicalOperators: string enum DeegraphLogicalOperators: string
{ {

2
src/Enumerators/DeegraphNumericalComparitor.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Enumerators; namespace Darksparrow\DeegraphInteractions\Enumerators;
enum DeegraphNumericalComparitor: string enum DeegraphNumericalComparitor: string
{ {

2
src/Exceptions/QueryBuilderConflictingFieldAlreadyExistsException.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Exceptions; namespace Darksparrow\DeegraphInteractions\Exceptions;
use Exception; use Exception;

2
src/Exceptions/QueryBuilderInvalidDeegraphPathException.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Exceptions; namespace Darksparrow\DeegraphInteractions\Exceptions;
use Exception; use Exception;

2
src/Exceptions/QueryBuilderInvalidInputException.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Exceptions; namespace Darksparrow\DeegraphInteractions\Exceptions;
use Exception; use Exception;

2
src/Exceptions/QueryBuilderRequiredFieldIsNotSetException.php

@ -1,6 +1,6 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\Exceptions; namespace Darksparrow\DeegraphInteractions\Exceptions;
use Exception; use Exception;

8
src/QueryBuilder/QueryBuilder.php

@ -1,10 +1,10 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\QueryBuilder; namespace Darksparrow\DeegraphInteractions\QueryBuilder;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\InsertQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\InsertQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\PutQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\PutQuery;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders\SelectQuery; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders\SelectQuery;
class QueryBuilder class QueryBuilder
{ {

7
src/QueryBuilder/QueryBuilderTrait.php

@ -1,10 +1,9 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\QueryBuilder; namespace Darksparrow\DeegraphInteractions\QueryBuilder;
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException; use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException;
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderException; use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderInvalidInputException;
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderInvalidInputException;
trait QueryBuilderTrait trait QueryBuilderTrait
{ {

8
src/QueryBuilder/QueryBuilders/InsertQuery.php

@ -1,10 +1,10 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders; namespace Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders;
use Darksparrow\DeegraphPHP\Attributes\QueryBuilderRequiredField; use Darksparrow\DeegraphInteractions\Attributes\QueryBuilderQuery;
use Darksparrow\DeegraphPHP\Attributes\QueryBuilderQuery; use Darksparrow\DeegraphInteractions\Attributes\QueryBuilderRequiredField;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilderTrait; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilderTrait;
#[QueryBuilderQuery] #[QueryBuilderQuery]
final class InsertQuery final class InsertQuery

11
src/QueryBuilder/QueryBuilders/PutQuery.php

@ -1,12 +1,11 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders; namespace Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders;
use Darksparrow\DeegraphPHP\Attributes\QueryBuilderRequiredField; use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException;
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException; use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderInvalidInputException;
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderInvalidInputException; use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderRequiredFieldIsNotSetException;
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderRequiredFieldIsNotSetException; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilderTrait;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilderTrait;
final class PutQuery final class PutQuery
{ {

12
src/QueryBuilder/QueryBuilders/SelectQuery.php

@ -1,12 +1,12 @@
<?php <?php
namespace Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilders; namespace Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilders;
use Darksparrow\DeegraphPHP\Attributes\QueryBuilderQuery; use Darksparrow\DeegraphInteractions\Attributes\QueryBuilderQuery;
use Darksparrow\DeegraphPHP\Attributes\QueryBuilderRequiredField; use Darksparrow\DeegraphInteractions\Attributes\QueryBuilderRequiredField;
use Darksparrow\DeegraphPHP\Enumerators\DeegraphEqualityOperator; use Darksparrow\DeegraphInteractions\Enumerators\DeegraphEqualityOperator;
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderRequiredFieldIsNotSetException; use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderRequiredFieldIsNotSetException;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilderTrait; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilderTrait;
#[QueryBuilderQuery] #[QueryBuilderQuery]
final class SelectQuery final class SelectQuery

4
tests/QueryBuilderPutTest.php

@ -1,8 +1,8 @@
<?php <?php
use Darksparrow\DeegraphPHP\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException; use Darksparrow\DeegraphInteractions\Exceptions\QueryBuilderConflictingFieldAlreadyExistsException;
use Darksparrow\DeegraphPHP\QueryBuilder\QueryBuilder; use Darksparrow\DeegraphInteractions\QueryBuilder\QueryBuilder;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
final class QueryBuilderPutTest extends TestCase final class QueryBuilderPutTest extends TestCase

Loading…
Cancel
Save