Prado\Collections\TPriorityList::itemAtIndexInPriority PHP Method

itemAtIndexInPriority() public method

Returns the item at an index within a priority
public itemAtIndexInPriority ( $index, $priority = null ) : mixed
return mixed the element at the offset, false if no element is found at the offset
    public function itemAtIndexInPriority($index, $priority = null)
    {
        if ($priority === null) {
            $priority = $this->getDefaultPriority();
        }
        $priority = (string) round(TPropertyValue::ensureFloat($priority), $this->_p);
        return !isset($this->_d[$priority]) ? false : (isset($this->_d[$priority][$index]) ? $this->_d[$priority][$index] : false);
    }