ContentType

Implements \ContentTypeInterface

Class ContentType

This class represents the content type

category

System

package

Content

Methods

ContentType constructor

__construct(string $type) 

Arguments

$type

string

Content type

Create instance for "content" content type

createForContent() : \ContentType
static

Response

\ContentType

Create instance for file content type

createForFile() : \ContentType
static

Response

\ContentType

Return the content type

type() : string

Response

string

Constants

"Content" content type

CONTENT

File content type

FILE

Properties

Content type

type : string
var

Type(s)

string