PatchCustomerAction
in package
Class PatchCustomerAction
Tags
Table of Contents
- $factory : CustomerFactory
- $readService : CustomerReadService
- $writeService : CustomerWriteService
- __construct() : mixed
- __invoke() : Response
- patchBusinessInformation() : void
- patchContactInformation() : void
- patchCredit() : void
- patchCustomerGroup() : void
- patchIsFavoriteState() : void
- patchPersonalInformation() : void
Properties
$factory
private
CustomerFactory
$factory
$readService
private
CustomerReadService
$readService
$writeService
private
CustomerWriteService
$writeService
Methods
__construct()
public
__construct(CustomerReadService $readService, CustomerWriteService $writeService, CustomerFactory $factory) : mixed
Parameters
- $readService : CustomerReadService
- $writeService : CustomerWriteService
- $factory : CustomerFactory
Return values
mixed —__invoke()
public
__invoke(Request $request, Response $response, array<string|int, mixed> $args) : Response
Parameters
Return values
Response —patchBusinessInformation()
private
patchBusinessInformation(array<string|int, mixed> $body, Customer $customer) : void
Parameters
- $body : array<string|int, mixed>
- $customer : Customer
Tags
Return values
void —patchContactInformation()
private
patchContactInformation(array<string|int, mixed> $body, Customer $customer) : void
Parameters
- $body : array<string|int, mixed>
- $customer : Customer
Tags
Return values
void —patchCredit()
private
patchCredit(array<string|int, mixed> $body, Customer $customer) : void
Parameters
- $body : array<string|int, mixed>
- $customer : Customer
Tags
Return values
void —patchCustomerGroup()
private
patchCustomerGroup(array<string|int, mixed> $body, Customer $customer) : void
Parameters
- $body : array<string|int, mixed>
- $customer : Customer
Return values
void —patchIsFavoriteState()
private
patchIsFavoriteState(array<string|int, mixed> $body, Customer $customer) : void
Parameters
- $body : array<string|int, mixed>
- $customer : Customer
Return values
void —patchPersonalInformation()
private
patchPersonalInformation(array<string|int, mixed> $body, Customer $customer) : void
Parameters
- $body : array<string|int, mixed>
- $customer : Customer