Pop\Dom\Child::getNodeName PHP Method

getNodeName() public method

Method to return the child node name.
public getNodeName ( ) : string
return string
    public function getNodeName()
    {
        return $this->nodeName;
    }

Usage Example

コード例 #1
0
ファイル: ChildTest.php プロジェクト: nicksagona/PopPHP
 public function testSetAndGetNodeName()
 {
     $c = new Child('p', 'This is a paragraph');
     $c->setNodeName('span');
     $this->assertEquals('span', $c->getNodeName());
 }