CreateCustomerAction
in package
Class CreateCustomerAction
Tags
Table of Contents
- $factory : CustomerFactory
- $service : CustomerWriteService
- __construct() : mixed
- __invoke() : Response
- parseRequestBody() : array<string|int, mixed>
Properties
$factory
private
CustomerFactory
$factory
$service
private
CustomerWriteService
$service
Methods
__construct()
public
__construct(CustomerWriteService $service, CustomerFactory $factory) : mixed
Parameters
- $service : CustomerWriteService
- $factory : CustomerFactory
Return values
mixed —__invoke()
public
__invoke(Request $request, Response $response, array<string|int, mixed> $args) : Response
Parameters
Return values
Response —parseRequestBody()
private
parseRequestBody(array<string|int, mixed> $body) : array<string|int, mixed>
Parameters
- $body : array<string|int, mixed>