Pop\Dom\Dom::getContentType PHP Method

getContentType() public method

Method to return the document charset.
public getContentType ( ) : string
return string
    public function getContentType()
    {
        return $this->contentType;
    }

Usage Example

Example #1
0
 public function testSetAndGetContentType()
 {
     $d = new Dom(Dom::XHTML11);
     $d->setContentType('text/html');
     $this->assertEquals('text/html', $d->getContentType());
 }