src/POData/Writers/Atom/AtomODataWriter.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)
	{
		$parts = explode(";", $contentType);
		return in_array(MimeTypes::MIME_APPLICATION_XML, $parts) || in_array(MimeTypes::MIME_APPLICATION_ATOMSERVICE, $parts) || in_array(MimeTypes::MIME_APPLICATION_ATOM, $parts);
	}
public function canHandle ( Version $ responseVersion , $ contentType ) { $ parts = explode ( " ; " , $ contentType ) ; return in_array ( MimeTypes :: MIME_APPLICATION_XML , $ parts ) || in_array ( MimeTypes :: MIME_APPLICATION_ATOMSERVICE , $ parts ) || in_array ( MimeTypes :: MIME_APPLICATION_ATOM , $ 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
//first 2 parts are for service documents, second part is for Resources //TODO: i'm not sold about this first part not being constrained to v1 (or maybe v2)..but it's how WS DS works. See #94