Prado\Collections\TStack::clear PHP Метод

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

Removes all items in the stack.
public clear ( )
    public function clear()
    {
        $this->_c = 0;
        $this->_d = array();
    }

Usage Example

Пример #1
0
 public function testClear()
 {
     $stack = new TStack(array(1, 2, 3));
     $stack->clear();
     self::assertEquals(array(), $stack->toArray());
 }