AgreementFactory

Class AgreementFactory

category

System

package

Agreement

subpackage

Factories

Methods

AgreementFactory constructor.

__construct(\AgreementRepositoryInterface $repository) 

Arguments

Creates an agreement.

create() : \Agreement

Response

\Agreement

Creates an agreement collection.

createCollection() : \AgreementCollection

Returns a new instance of a AgreementCustomer.

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

Arguments

$customerName

\StringType

Customer name.

$customerEmail

\CustomerEmailInterface

Customer email.

Response

\AgreementCustomer

Properties

repository

repository : \AgreementRepository
var

Type(s)

\AgreementRepository