Documentation

BusinessHours
in package

BusinessHours utils class.

Table of Contents

DEFAULT_BUSINESS_HOURS_ID  = 0
Default business hours ID.
getBusinessHours()  : array<string|int, mixed>
Get default business hours.
getBusinessHoursById()  : array<string|int, mixed>|null
Get business hours by id.

Constants

DEFAULT_BUSINESS_HOURS_ID

Default business hours ID.

public mixed DEFAULT_BUSINESS_HOURS_ID = 0

Methods

getBusinessHours()

Get default business hours.

public static getBusinessHours() : array<string|int, mixed>
Return values
array<string|int, mixed>

getBusinessHoursById()

Get business hours by id.

public static getBusinessHoursById([int $id = self::DEFAULT_BUSINESS_HOURS_ID ]) : array<string|int, mixed>|null
Parameters
$id : int = self::DEFAULT_BUSINESS_HOURS_ID
Return values
array<string|int, mixed>|null

        

Search results