text() public method

Returns the text of this node.
public text ( ) : string
return string
Example #1
0
 public function testText()
 {
     $node = new TextNode('foo bar');
     $this->assertEquals('foo bar', $node->text());
 }