AgreementReadService

Implements \AgreementReadServiceInterface

Class AgreementReadService

This class provides methods in order to read agreements.

category

System

package

Agreement

implements

AgreementReadServiceInterface

Methods

AgreementReadService constructor.

__construct(\AgreementAccessRepositoryInterface $repository) 

Arguments

Returns the agreements by the provided customer email address.

getAgreementsByCustomerEmail(\StringType $customerEmail) : \AgreementCollection

Arguments

$customerEmail

\StringType

Response

\AgreementCollection

Returns all agreement entities.

getAll() : \AgreementCollection

Returns an agreement entity by the provided id.

getById(\IdType $id) : \Agreement

Arguments

$id

\IdType

Response

\Agreement

Properties

repository

repository : \AgreementRepositoryInterface