Prado\Collections\TStack::getCount PHP Method

getCount() public method

public getCount ( ) : integer
return integer the number of items in the stack
    public function getCount()
    {
        return $this->_c;
    }

Usage Example

Ejemplo n.º 1
0
 public function testGetCount()
 {
     $stack = new TStack();
     self::assertEquals(0, $stack->getCount());
     $stack = new TStack(array(1, 2, 3));
     self::assertEquals(3, $stack->getCount());
 }