Class AgreementFactory

Class AgreementFactory

Methods summary

public __construct( AgreementRepositoryInterface $repository )

AgreementFactory constructor.

public create( void ) : Agreement

Creates an agreement.

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

Returns a new instance of a AgreementCustomer.

public createCollection( void ) : AgreementCollection

Creates an agreement collection.