Skip to content

Commit

Permalink
финиш
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarman committed Feb 18, 2024
1 parent 33e8933 commit 679e291
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace App\Domains\Order\Application;

use App\Domains\Order\Application\Requests\AddProductToOrderRequest;
use App\Domains\Order\Domain\Factories\AbstractProductFactory;
use App\Domains\Order\Domain\Factories\Product\AbstractProductFactory;
use App\Domains\Order\Domain\Repositories\OrderRepositoryInterface;

class AddProductToOrderUseCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use App\Domains\Order\Application\Requests\CreateOrderRequest;
use App\Domains\Order\Application\Response\CreateOrderResponse;
use App\Domains\Order\Domain\Factories\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\Order\OrderFactoryInterface;
use App\Domains\Order\Domain\Repositories\OrderRepositoryInterface;

class CreateOrderUseCase
Expand Down

This file was deleted.

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

namespace App\Domains\Order\Domain\Factories;
namespace App\Domains\Order\Domain\Factories\Order;

use App\Domains\Order\Application\Requests\CreateOrderRequest;
use App\Domains\Order\Domain\Entity\Order\AbstractOrder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domains\Order\Domain\Factories;
namespace App\Domains\Order\Domain\Factories\Order;

use App\Domains\Order\Application\Requests\CreateOrderRequest;
use App\Domains\Order\Domain\Entity\Order\AbstractOrder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domains\Order\Domain\Factories;
namespace App\Domains\Order\Domain\Factories\Order;

use App\Domains\Order\Application\Requests\CreateOrderRequest;
use App\Domains\Order\Domain\Entity\Order\AbstractOrder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domains\Order\Domain\Factories;
namespace App\Domains\Order\Domain\Factories\Order;

use App\Domains\Order\Application\Requests\CreateOrderRequest;
use App\Domains\Order\Domain\Entity\Order\AbstractOrder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domains\Order\Domain\Factories;
namespace App\Domains\Order\Domain\Factories\Product;

use App\Domains\Order\Application\Requests\AddProductToOrderRequest;
use App\Domains\Order\Domain\Entity\Product\AbstractProduct;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace App\Domains\Order\Domain\Factories;
namespace App\Domains\Order\Domain\Factories\Product;

use App\Domains\Order\Application\Requests\AddProductToOrderRequest;
use App\Domains\Order\Domain\Entity\Product\AbstractProduct;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use App\Domains\Order\Application\CreateOrderUseCase;
use App\Domains\Order\Application\Requests\CreateOrderRequest;
use App\Domains\Order\Domain\Factories\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\Order\OrderFactoryInterface;
use GraphQL\Type\Definition\ResolveInfo;
use GraphQL\Type\Definition\Type;
use Rebing\GraphQL\Support\Mutation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Domains\Order\Infrastructure\GraphQL\Mutations\CreateOrder;

use App\Domains\Order\Domain\Factories\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\OrderPhoneFactory;
use App\Domains\Order\Domain\Factories\Order\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\Order\OrderPhoneFactory;
use GraphQL\Type\Definition\Type;

class CreateOrderFromPhoneMutation extends AbstractCreateOrderMutation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Domains\Order\Infrastructure\GraphQL\Mutations\CreateOrder;

use App\Domains\Order\Domain\Factories\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\OrderShopFactory;
use App\Domains\Order\Domain\Factories\Order\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\Order\OrderShopFactory;
use GraphQL\Type\Definition\Type;

class CreateOrderFromShopMutation extends AbstractCreateOrderMutation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Domains\Order\Infrastructure\GraphQL\Mutations\CreateOrder;

use App\Domains\Order\Domain\Factories\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\OrderSiteFactory;
use App\Domains\Order\Domain\Factories\Order\OrderFactoryInterface;
use App\Domains\Order\Domain\Factories\Order\OrderSiteFactory;
use GraphQL\Type\Definition\Type;

class CreateOrderFromSiteMutation extends AbstractCreateOrderMutation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,19 @@ public function create(AbstractProduct $product): int
{
return 1;
}

public function getAvailableAdditionalIngredientsOfProduct(): array
{
// TODO: Implement getAvailableAdditionalIngredientsOfProduct() method.
}

public function getDefaultIngredientsOfProduct(): array
{
// TODO: Implement getDefaultIngredientsOfProduct() method.
}

public function getProductById(): AbstractProduct
{
// TODO: Implement getProductById() method.
}
}
4 changes: 2 additions & 2 deletions hw16/code/app/Infrastructure/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Infrastructure\Providers;

use App\Domains\Order\Domain\Factories\AbstractProductFactory;
use App\Domains\Order\Domain\Factories\ProductFactory;
use App\Domains\Order\Domain\Factories\Product\AbstractProductFactory;
use App\Domains\Order\Domain\Factories\Product\ProductFactory;
use App\Domains\Order\Domain\Publishers\PublisherProductChangeStatus;
use App\Domains\Order\Domain\Publishers\PublisherProductChangeStatusInterface;
use App\Domains\Order\Domain\Repositories\OrderRepositoryInterface;
Expand Down

0 comments on commit 679e291

Please sign in to comment.