Class Agreement

Class Agreement

Agreement implements AgreementInterface

Methods summary

public __construct( AgreementRepositoryInterface $repository )

Agreement constructor.

public store( void ) :

Stores the agreement.

public delete( void ) :

Deletes the agreement.

public setId( IdType $id ) :

Sets the agreement id.

public getId( void ) : IdType

Returns the agreement id.

public setDateAdded( DateTime $dateTime ) :

Sets the date of the agreement.

public getDateAdded( void ) : DateTime

Returns the date and time of the agreement.

public setLastModifiedDate( DateTime $dateTime ) :

Sets the last modified date of the agreement.

public getLastModifiedDateTime( void ) : DateTime

Returns the last modified date of the agreement.

public setCustomer( AgreementCustomerInterface $customer ) :

Sets the customers to the agreement.

public getCustomer( void ) : AgreementCustomerInterface

Returns the customers of the agreement.

public setIpAddress( StringType $ipAddress ) :

Sets the IP address of the customer which confirmed the agreement.

public getIpAddress( void ) : StringType

Returns the IP address of the customer which confirmed the agreement.

public setText( NonEmptyStringType $text ) :

Sets the text of the agreement.

public getText( void ) : NonEmptyStringType

Returns the text of the agreement.

public setLegalTextVersion( StringType $legalTextVersion ) :

Sets the version of the legal text.

public getLegalTextVersion( void ) : StringType

Returns the version of the legal text.

public setContentGroup( IdType $contentGroup ) :

Sets the content group of the legal text.

public getContentGroup( void ) : IdType

Returns the content group ID of the legal text.

public setLanguageId( IdType $languageId ) :

Sets the language ID of the agreement.

public getLanguageId( void ) : IdType

Returns the language ID of the agreement.

Properties summary

protected $id : IdType
0
protected $dateAdded : DateTime

		
protected $lastModifiedDate : DateTime

		
protected $customer

		
protected $ipAddress : StringType
''
protected $text : NonEmptyStringType
''
protected $legalTextVersion : StringType
''
protected $contentGroup : IdType
0
protected $languageId : IdType
0