Prado\Collections\TPriorityMap::itemAt PHP Метод

itemAt() публичный Метод

Returns the item with the specified key. If a priority is specified, only items within that specific priority will be selected
public itemAt ( $key, $priority = false ) : mixed
Результат mixed the element at the offset, null if no element is found at the offset
    public function itemAt($key, $priority = false)
    {
        if ($priority === false) {
            $map = $this->flattenPriorities();
            return isset($map[$key]) ? $map[$key] : null;
        } else {
            if ($priority === null) {
                $priority = $this->getDefaultPriority();
            }
            $priority = (string) round(TPropertyValue::ensureFloat($priority), $this->_p);
            return isset($this->_d[$priority]) && isset($this->_d[$priority][$key]) ? $this->_d[$priority][$key] : null;
        }
    }