MenuBoxService
in package
Class BoxService
Table of Contents
- ALLOCATED = false
- FREE = true
- $boxData : array<string|int, mixed>
- $boxSpots : mixed
- $settingsService : SettingsService
- __construct() : mixed
- SettingsService constructor.
- getPosition() : string
- Adapter Method
- getStatus() : bool
- Adapter Method
- getStatusByPosition() : bool
- getFreeSpot() : int
- init() : void
- setPosition() : void
- setStatus() : void
Constants
ALLOCATED
protected
mixed
ALLOCATED
= false
FREE
protected
mixed
FREE
= true
Properties
$boxData
protected
array<string|int, mixed>
$boxData
$boxSpots
protected
mixed
$boxSpots
= null
$settingsService
protected
SettingsService
$settingsService
Methods
__construct()
SettingsService constructor.
public
__construct(SettingsService $settingsService) : mixed
Parameters
- $settingsService : SettingsService
Tags
Return values
mixed —getPosition()
Adapter Method
public
getPosition(string $boxName) : string
Parameters
- $boxName : string
Tags
Return values
string —getStatus()
Adapter Method
public
getStatus(string $boxName) : bool
Parameters
- $boxName : string
Tags
Return values
bool —getStatusByPosition()
public
getStatusByPosition(int $position) : bool
Parameters
- $position : int
Tags
Return values
bool —getFreeSpot()
protected
getFreeSpot() : int
Return values
int —init()
protected
init() : void
Tags
Return values
void —setPosition()
protected
setPosition( $boxName, $value) : void
Parameters
Return values
void —setStatus()
protected
setStatus( $boxName, $value) : void