Class AgreementReadService

Class AgreementReadService

This class provides methods in order to read agreements.

AgreementReadService implements AgreementReadServiceInterface
Package: Agreement
Category: System
Implements: AgreementReadServiceInterface
Located at Services/Core/Agreement/Services/AgreementReadService.inc.php

Methods summary

public __construct( AgreementAccessRepositoryInterface $repository )

AgreementReadService constructor.

public getAll( void ) : AgreementCollection

Returns all agreement entities.

public getById( IdType $id ) : Agreement

Returns an agreement entity by the provided id.

public getAgreementsByCustomerEmail( StringType $customerEmail ) : AgreementCollection

Returns the agreements by the provided customer email address.