- Full name:
\App\Domain\Product\Command\CreateProductCommandHandler - This class implements:
CommandHandler
Properties
aggregateRepository
Methods
__construct
public __construct(\App\Domain\Product\Repository\ProductAggregateRepository $aggregateRepository): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$aggregateRepository |
\App\Domain\Product\Repository\ProductAggregateRepository |
handle
public handle(\App\Domain\Product\Command\CreateProductCommand|\Codefy\CommandBus\Command $command): void
Parameters:
| Parameter | Type | Description |
|---|---|---|
$command |
\App\Domain\Product\Command\CreateProductCommand|\Codefy\CommandBus\Command |
Throws: