Prado\Collections\TStack::push PHP Méthode

push() public méthode

Pushes an item into the stack.
public push ( $item )
    public function push($item)
    {
        ++$this->_c;
        $this->_d[] = $item;
    }

Usage Example

Exemple #1
0
 public function testPush()
 {
     $stack = new TStack();
     $stack->push(1);
     self::assertEquals(array(1), $stack->toArray());
 }