Pop\Dom\Dom::getContentType PHP 메소드

getContentType() 공개 메소드

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

Usage Example

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