AvailabilityService

This service class contains various methods for getting item availabilities.
All public functions are available in the Twig template renderer.

Namespace

IO\Services

Properties
Type Name Description

AvailabilityRepositoryContract

$availabilityRepository

This repository is used for fetching and updating availabilities.

Methods
public __construct($availabilityRepository)

AvailabilityService constructor.

Parameters

Type

Name

Description

AvailabilityRepositoryContract

$availabilityRepository

This repository is used for fetching and updating availabilities.

public getAvailabilityById($availabilityId):Availability

Get the item availability by id

Parameters

Type

Name

Description

int

$availabilityId

The id of the availability, between 1 and 10

public getAvailabilities():array

Get all item availabilities