getIndex() public method

Returns the index of this node which determines the order among siblings with the same parent node.
public getIndex ( ) : integer
return integer
 /**
  * @test
  */
 public function theIndexCanBeSetAndRetrieved()
 {
     $this->nodeData->setIndex(2);
     $this->assertEquals(2, $this->nodeData->getIndex());
 }
Exemplo n.º 2
0
 /**
  * Returns the index of this node which determines the order among siblings
  * with the same parent node.
  *
  * @return integer
  */
 public function getIndex()
 {
     return $this->nodeData->getIndex();
 }