class PlannedInstance (View source)

Simple object to tie a board instance to a set of a InstanceItem objects. These get decreased over time as the board slots are filled out.

Properties

protected Instance $instance
protected ItemObjectGroup[] $contentObjectGroups
protected PlannedSlot[] $plannedSlots

Methods

__construct(Instance $instance, array $contentObjectGroups)

PlannedInstance constructor.

getInstance()

No description

array
getContentObjectGroups()

No description

sliceContentObjectGroups(int $number)

Retrieves object groups without removing them from the source array.

void
removeObjectGroups(int $number)

Once object groups are used, remove them from the source array so they're not used again.

getPlannedSlot(int $slot)

No description

array
getPlannedSlots()

No description

addPlannedSlot(PlannedSlot $plannedSlot)

No description

Details

__construct(Instance $instance, array $contentObjectGroups)

PlannedInstance constructor.

Parameters

Instance $instance
array $contentObjectGroups

Instance getInstance()

No description

Return Value

Instance

array getContentObjectGroups()

No description

Return Value

array

ItemObjectGroup[] sliceContentObjectGroups(int $number)

Retrieves object groups without removing them from the source array.

Parameters

int $number

Return Value

ItemObjectGroup[]

void removeObjectGroups(int $number)

Once object groups are used, remove them from the source array so they're not used again.

Parameters

int $number

Return Value

void

getPlannedSlot(int $slot)

No description

Parameters

int $slot

array getPlannedSlots()

No description

Return Value

array

addPlannedSlot(PlannedSlot $plannedSlot)

No description

Parameters

PlannedSlot $plannedSlot