Contact domain

Contact Commands

AddContactCommand

PrestaShop\PrestaShop\Core\Domain\Contact\Command\AddContactCommand Class AddContactCommand is responsible for adding the contact data.

Command details
Constructor parameters
  • $array $localisedTitles
  • $bool $isMessageSavingEnabled
Handler class PrestaShop\PrestaShop\Adapter\Contact\CommandHandler\AddContactHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Contact\CommandHandler\AddContactHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Contact\ValueObject\ContactId

EditContactCommand

PrestaShop\PrestaShop\Core\Domain\Contact\Command\EditContactCommand Class EditContactCommand is responsible for editing contact data.

Command details
Constructor parameters
  • $int $contactId
Handler class PrestaShop\PrestaShop\Adapter\Contact\CommandHandler\EditContactHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Contact\CommandHandler\EditContactHandlerInterface
Return type void

Contact Queries

GetContactForEditing

PrestaShop\PrestaShop\Core\Domain\Contact\Query\GetContactForEditing Class GetContactForEditing is responsible for getting the data related with contact entity.

Query details
Constructor parameters
  • $int $contactId
Handler class PrestaShop\PrestaShop\Adapter\Contact\QueryHandler\GetContactForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Contact\QueryHandler\GetContactForEditingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Contact\QueryResult\EditableContact