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

setContentType() 공개 메소드

Method to set the document charset.
public setContentType ( string $content ) : Dom
$content string
리턴 Dom
    public function setContentType($content)
    {
        $this->contentType = $content;
        return $this;
    }

Usage Example

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