AgreementFactory
in package
Class AgreementFactory
Tags
Table of Contents
- $repository : AgreementRepository
- __construct() : mixed
- AgreementFactory constructor.
- create() : Agreement
- Creates an agreement.
- createCollection() : AgreementCollection
- Creates an agreement collection.
- createCustomer() : AgreementCustomer
- Returns a new instance of a AgreementCustomer.
Properties
$repository
private
AgreementRepository
$repository
Methods
__construct()
AgreementFactory constructor.
public
__construct(AgreementRepositoryInterface $repository) : mixed
Parameters
- $repository : AgreementRepositoryInterface
Return values
mixed —create()
Creates an agreement.
public
create() : Agreement
Return values
Agreement —createCollection()
Creates an agreement collection.
public
createCollection() : AgreementCollection
Return values
AgreementCollection —createCustomer()
Returns a new instance of a AgreementCustomer.
public
createCustomer(StringType $customerName, CustomerEmailInterface $customerEmail) : AgreementCustomer
Parameters
- $customerName : StringType
-
Customer name.
- $customerEmail : CustomerEmailInterface
-
Customer email.