Trait \Prado\Collections\TPriorityPropertyTrait
TPriorityPropertyTrait class
This trait implements the common properties and methods of IPriorityItem. You still must "implement IPriorityItem" in your class when you use this trait as they go together.
The trait adds methods:
- getPriority returns the default priority of items without priority.
- setPriority sets the default priority. (protected)
- _priorityItemZappableSleepProps to add the excluded trait properties on sleep.
The priority is implement with a float.
Trait hierarchy
Author: Brad Anderson <belisoful@icloud.com>Since: 4.3.0
public
|
|
public
|
|
protected
|
_priorityItemZappableSleepProps(array<string|int, mixed> &$exprops) : mixed
Call this to exclude the priority property from sleep properties when there
is no priority.
|
|