PriorityQueue
PHP Manual

Ds\PriorityQueue::capacity

(PECL ds >= 1.0.0)

Ds\PriorityQueue::capacityReturns the current capacity.

Descrição

public int Ds\PriorityQueue::capacity ( void )

Returns the current capacity.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

The current capacity.

Exemplos

Exemplo #1 Ds\PriorityQueue::capacity() example

<?php
$queue 
= new \Ds\PriorityQueue();
var_dump($queue->capacity());
?>

O exemplo acima irá imprimir algo similar à:

int(8)

PriorityQueue
PHP Manual