AgreementReadService
in package
implements
AgreementReadServiceInterface
Class AgreementReadService
This class provides methods in order to read agreements.
Tags
Interfaces, Classes and Traits
- AgreementReadServiceInterface
- Interface AgreementReadServiceInterface
Table of Contents
- $repository : AgreementRepositoryInterface
- __construct() : mixed
- AgreementReadService constructor.
- getAgreementsByCustomerEmail() : AgreementCollection
- Returns the agreements by the provided customer email address.
- getAll() : AgreementCollection
- Returns all agreement entities.
- getById() : Agreement
- Returns an agreement entity by the provided id.
Properties
$repository
private
AgreementRepositoryInterface
$repository
Methods
__construct()
AgreementReadService constructor.
public
__construct(AgreementAccessRepositoryInterface $repository) : mixed
Parameters
- $repository : AgreementAccessRepositoryInterface
Return values
mixed —getAgreementsByCustomerEmail()
Returns the agreements by the provided customer email address.
public
getAgreementsByCustomerEmail(StringType $customerEmail) : AgreementCollection
Parameters
- $customerEmail : StringType
Return values
AgreementCollection —getAll()
Returns all agreement entities.
public
getAll() : AgreementCollection
Return values
AgreementCollection —getById()
Returns an agreement entity by the provided id.
public
getById(IdType $id) : Agreement
Parameters
- $id : IdType