AgreementWriteService

Implements \AgreementWriteServiceInterface

Class AgreementWriteService

This class provides methods in order to store and delete agreements.

category

System

package

Agreement

implements

AgreementWriteServiceInterface

Methods

AgreementWriteService constructor.

__construct(\AgreementFactory $factory) 

Arguments

Returns an agreement entity.

create() : \Agreement

Response

\Agreement

Returns an agreement customer.

createCustomer(\StringType $customerName, \CustomerEmailInterface $customerEmail) : \AgreementCustomer

Arguments

$customerName

\StringType

Customer name.

$customerEmail

\CustomerEmailInterface

Customer email.

Response

\AgreementCustomer

Deletes the provided agreement.

delete(\AgreementInterface $agreement) : $this|\AgreementWriteServiceInterface

Arguments

$agreement

\AgreementInterface

Response

$this|\AgreementWriteServiceInterface

Same instance for chained method calls.

Stores the provided agreement.

store(\AgreementInterface $agreement) : $this|\AgreementWriteServiceInterface

Arguments

$agreement

\AgreementInterface

Response

$this|\AgreementWriteServiceInterface

Same instance for chained method calls.

Properties

factory

factory : \AgreementFactory
var

Type(s)

\AgreementFactory