/** * @test */ public function theIndexCanBeSetAndRetrieved() { $this->nodeData->setIndex(2); $this->assertEquals(2, $this->nodeData->getIndex()); }
/** * 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(); }