Prado\Collections\TStack::toArray PHP Method

toArray() public method

public toArray ( ) : array
return array the list of items in stack
    public function toArray()
    {
        return $this->_d;
    }

Usage Example

コード例 #1
0
ファイル: TStackTest.php プロジェクト: pradosoft/prado
 public function testPush()
 {
     $stack = new TStack();
     $stack->push(1);
     self::assertEquals(array(1), $stack->toArray());
 }