public function setContentType($contentType = null)
    {
        if ($contentType === null) {
            $contentType = isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : null;
        }

        $this->contentType = $contentType;
    }
public function setContentType($contentType = null)
    {
        if ($contentType === null) {
            $contentType = isset($_SERVER['CONTENT_TYPE']) ? $_SERVER['CONTENT_TYPE'] : null;
        }

        $this->contentType = $contentType;
    }
public function setContentType ( $ contentType = null ) { if ( $ contentType === null ) { $ contentType = isset ( $ _SERVER [ 'CONTENT_TYPE' ] ) ? $ _SERVER [ 'CONTENT_TYPE' ] : null ; } $ this -> contentType = $ contentType ; }
Sets the content type of the request content. If the provided value is null, it is automatically detected
from the environment.
@param string $contentType
Sets the content type of the request content . If the provided value is null it is automatically detected from the environment .