public function addCompatibleContentType($contentType)
    {
        if (!\in_array($contentType, $this->compatibleContentTypes, true)) {
            $this->compatibleContentTypes[] = $contentType;
        }
    }
public function addCompatibleContentType($contentType)
    {
        if (!\in_array($contentType, $this->compatibleContentTypes, true)) {
            $this->compatibleContentTypes[] = $contentType;
        }
    }
public function addCompatibleContentType ( $ contentType ) { if ( ! \ in_array ( $ contentType , $ this -> compatibleContentTypes , true ) ) { $ this -> compatibleContentTypes [ ] = $ contentType ; } }
Add an additional supported content type

@param string $contentType
Add an additional supported content type