src/POData/Writers/Json/JsonODataV1Writer.php
/**
	 * Determines if the given writer is capable of writing the response or not
	 * @param Version $responseVersion the OData version of the response
	 * @param string $contentType the Content Type of the response
	 * @return boolean true if the writer can handle the response, false otherwise
	 */
Determines if the given writer is capable of writing the response or not
@param Version $responseVersion the OData version of the response
@param string $contentType the Content Type of the response
@return boolean true if the writer can handle the response, false otherwise
Determines if the given writer is capable of writing the response or not @param Version $responseVersion the OData version of the response @param string $contentType the Content Type of the response @return boolean true if the writer can handle the response false otherwise
public function canHandle(Version $responseVersion, $contentType)
	{
		if($responseVersion != Version::v1()){
			return false;
		}
		$parts = explode(";", $contentType);
		return in_array(MimeTypes::MIME_APPLICATION_JSON, $parts);
	}
public function canHandle ( Version $ responseVersion , $ contentType ) { if ( $ responseVersion != Version :: v1 ( ) ) { return false ; } $ parts = explode ( " ; " , $ contentType ) ; return in_array ( MimeTypes :: MIME_APPLICATION_JSON , $ parts ) ; }
Determines if the given writer is capable of writing the response or not
 @param Version $responseVersion the OData version of the response
 @param string $contentType the Content Type of the response
 @return boolean true if the writer can handle the response, false otherwise
Determines if the given writer is capable of writing the response or not @param Version $responseVersion the OData version of the response @param string $contentType the Content Type of the response @return boolean true if the writer can handle the response false otherwise