Skip to content

Commit

Permalink
Rename namespace for parameter objects
Browse files Browse the repository at this point in the history
  • Loading branch information
davesweb committed Aug 25, 2021
1 parent f18dc72 commit 20db660
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

final class CouponStatus
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

use Davesweb\BrinklinkApi\Exceptions\InvalidDirectionException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

use Davesweb\BrinklinkApi\Exceptions\InvalidGuideTypeException;

Expand Down
2 changes: 1 addition & 1 deletion src/Enums/Id.php → src/ParameterObjects/Id.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

final class Id
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

final class InventoryStatus
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

final class ItemType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

use Davesweb\BrinklinkApi\Exceptions\InvalidNewOrUsedException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

class OrderPaymentStatus
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Davesweb\BrinklinkApi\Enums;
namespace Davesweb\BrinklinkApi\ParameterObjects;

final class OrderStatus
{
Expand Down
4 changes: 2 additions & 2 deletions src/Repositories/CouponRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

use function Davesweb\uri;
use function Davesweb\toString;
use Davesweb\BrinklinkApi\Enums\Direction;
use Davesweb\BrinklinkApi\Enums\CouponStatus;
use Davesweb\BrinklinkApi\ValueObjects\Coupon;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\ParameterObjects\Direction;
use Davesweb\BrinklinkApi\Exceptions\NotFoundException;
use Davesweb\BrinklinkApi\ParameterObjects\CouponStatus;
use Davesweb\BrinklinkApi\Transformers\CouponTransformer;

class CouponRepository extends BaseRepository
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/FeedbackRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Davesweb\BrinklinkApi\Repositories;

use function Davesweb\uri;
use Davesweb\BrinklinkApi\Enums\Direction;
use Davesweb\BrinklinkApi\ValueObjects\Feedback;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\ParameterObjects\Direction;
use Davesweb\BrinklinkApi\Exceptions\NotFoundException;
use Davesweb\BrinklinkApi\Transformers\FeedbackTransformer;

Expand Down
6 changes: 3 additions & 3 deletions src/Repositories/InventoryRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

use function Davesweb\uri;
use function Davesweb\toString;
use Davesweb\BrinklinkApi\Enums\Id;
use Davesweb\BrinklinkApi\Enums\ItemType;
use Davesweb\BrinklinkApi\Enums\InventoryStatus;
use Davesweb\BrinklinkApi\ParameterObjects\Id;
use Davesweb\BrinklinkApi\ValueObjects\Inventory;
use Davesweb\BrinklinkApi\ParameterObjects\ItemType;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\Exceptions\NotFoundException;
use Davesweb\BrinklinkApi\ParameterObjects\InventoryStatus;
use Davesweb\BrinklinkApi\Transformers\InventoryTransformer;

class InventoryRepository extends BaseRepository
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/ItemRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use function Davesweb\uri;
use function Davesweb\toString;
use Davesweb\BrinklinkApi\Enums\ItemType;
use Davesweb\BrinklinkApi\ValueObjects\Item;
use Davesweb\BrinklinkApi\ParameterObjects\ItemType;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\Exceptions\NotFoundException;
use Davesweb\BrinklinkApi\Transformers\ItemTransformer;
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/MappingRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use function Davesweb\uri;
use function Davesweb\toString;
use Davesweb\BrinklinkApi\Enums\ItemType;
use Davesweb\BrinklinkApi\ValueObjects\Mapping;
use Davesweb\BrinklinkApi\ParameterObjects\ItemType;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\Transformers\MappingTransformer;

Expand Down
6 changes: 3 additions & 3 deletions src/Repositories/OrderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use function Davesweb\uri;
use function Davesweb\toString;
use Davesweb\BrinklinkApi\Enums\Direction;
use Davesweb\BrinklinkApi\Enums\OrderStatus;
use Davesweb\BrinklinkApi\ValueObjects\Order;
use Davesweb\BrinklinkApi\Enums\OrderPaymentStatus;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\ParameterObjects\Direction;
use Davesweb\BrinklinkApi\Exceptions\NotFoundException;
use Davesweb\BrinklinkApi\ParameterObjects\OrderStatus;
use Davesweb\BrinklinkApi\Transformers\OrderTransformer;
use Davesweb\BrinklinkApi\Transformers\FeedbackTransformer;
use Davesweb\BrinklinkApi\Transformers\OrderItemTransformer;
use Davesweb\BrinklinkApi\ParameterObjects\OrderPaymentStatus;
use Davesweb\BrinklinkApi\Transformers\OrderMessageTransformer;

class OrderRepository extends BaseRepository
Expand Down
6 changes: 3 additions & 3 deletions src/Repositories/PriceGuideRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

use function Davesweb\uri;
use function Davesweb\toString;
use Davesweb\BrinklinkApi\Enums\ItemType;
use Davesweb\BrinklinkApi\Enums\GuideType;
use Davesweb\BrinklinkApi\Enums\NewOrUsed;
use Davesweb\BrinklinkApi\ValueObjects\PriceGuide;
use Davesweb\BrinklinkApi\ParameterObjects\ItemType;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\ParameterObjects\GuideType;
use Davesweb\BrinklinkApi\ParameterObjects\NewOrUsed;
use Davesweb\BrinklinkApi\Exceptions\NotFoundException;
use Davesweb\BrinklinkApi\Transformers\PriceGuideTransformer;

Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/SubsetRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Repositories;

use function Davesweb\uri;
use Davesweb\BrinklinkApi\Enums\ItemType;
use Davesweb\BrinklinkApi\ParameterObjects\ItemType;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\Transformers\SubsetTransformer;

Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/SupersetRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use function Davesweb\uri;
use function Davesweb\toString;
use Davesweb\BrinklinkApi\Enums\ItemType;
use Davesweb\BrinklinkApi\ParameterObjects\ItemType;
use Davesweb\BrinklinkApi\Contracts\BricklinkGateway;
use Davesweb\BrinklinkApi\Transformers\SupersetTransformer;

Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/OrderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use DateTime;
use Davesweb\BrinklinkApi\Tests\TestCase;
use Davesweb\BrinklinkApi\BricklinkResponse;
use Davesweb\BrinklinkApi\Enums\OrderStatus;
use Davesweb\BrinklinkApi\ValueObjects\Cost;
use Davesweb\BrinklinkApi\ValueObjects\Item;
use Davesweb\BrinklinkApi\ValueObjects\Name;
Expand All @@ -16,13 +15,14 @@
use Davesweb\BrinklinkApi\ValueObjects\Feedback;
use Davesweb\BrinklinkApi\ValueObjects\Shipping;
use Davesweb\BrinklinkApi\ValueObjects\OrderItem;
use Davesweb\BrinklinkApi\Enums\OrderPaymentStatus;
use Davesweb\BrinklinkApi\ValueObjects\OrderMessage;
use Davesweb\BrinklinkApi\Exceptions\NotFoundException;
use Davesweb\BrinklinkApi\ParameterObjects\OrderStatus;
use Davesweb\BrinklinkApi\Repositories\OrderRepository;
use Davesweb\BrinklinkApi\Transformers\OrderTransformer;
use Davesweb\BrinklinkApi\Transformers\FeedbackTransformer;
use Davesweb\BrinklinkApi\Transformers\OrderItemTransformer;
use Davesweb\BrinklinkApi\ParameterObjects\OrderPaymentStatus;
use Davesweb\BrinklinkApi\Transformers\OrderMessageTransformer;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/CouponStatusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\CouponStatus;
use Davesweb\BrinklinkApi\ParameterObjects\CouponStatus;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/DirectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\Direction;
use Davesweb\BrinklinkApi\ParameterObjects\Direction;
use Davesweb\BrinklinkApi\Exceptions\InvalidDirectionException;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/GuideTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\GuideType;
use Davesweb\BrinklinkApi\ParameterObjects\GuideType;
use Davesweb\BrinklinkApi\Exceptions\InvalidGuideTypeException;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/IdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\Id;
use Davesweb\BrinklinkApi\ParameterObjects\Id;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/InventoryStatusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\InventoryStatus;
use Davesweb\BrinklinkApi\ParameterObjects\InventoryStatus;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/ItemTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\ItemType;
use Davesweb\BrinklinkApi\ParameterObjects\ItemType;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/NewOrUsedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\NewOrUsed;
use Davesweb\BrinklinkApi\ParameterObjects\NewOrUsed;
use Davesweb\BrinklinkApi\Exceptions\InvalidNewOrUsedException;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/OrderPaymentStatusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\OrderPaymentStatus;
use Davesweb\BrinklinkApi\ParameterObjects\OrderPaymentStatus;

/**
* @internal
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Enums/OrderStatusTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Davesweb\BrinklinkApi\Tests\Unit\Enums;

use PHPUnit\Framework\TestCase;
use Davesweb\BrinklinkApi\Enums\OrderStatus;
use Davesweb\BrinklinkApi\ParameterObjects\OrderStatus;

/**
* @internal
Expand Down

0 comments on commit 20db660

Please sign in to comment.