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

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

Gets the number of items at a priority within the map.
public getPriorityCount ( $priority = null ) : integer
Результат integer the number of items in the map at the specified priority
    public function getPriorityCount($priority = null)
    {
        if ($priority === null) {
            $priority = $this->getDefaultPriority();
        }
        $priority = (string) round(TPropertyValue::ensureFloat($priority), $this->_p);
        if (!isset($this->_d[$priority]) || !is_array($this->_d[$priority])) {
            return false;
        }
        return count($this->_d[$priority]);
    }