src/POData/Writers/Atom/AtomODataWriter.php
/**
     * Write null value
     * 
     * @param ODataProperty $property ODataProperty object to write null value
     * according to property type.
     * 
     * @return AtomODataWriter
     */
Write null value

@param ODataProperty $property ODataProperty object to write null value
according to property type.


Write null value @param ODataProperty $property ODataProperty object to write null value according to property type .
protected function writeNullValue(ODataProperty $property)
    {
        if (!(($property instanceof ODataBagContent) || ($property instanceof ODataPropertyContent))) {
            $this->xmlWriter->writeAttributeNs(
                ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX, 
                ODataConstants::ATOM_NULL_ATTRIBUTE_NAME, 
                null, 
                ODataConstants::XML_TRUE_LITERAL
            );
        }
	    return $this;
    }
protected function writeNullValue ( ODataProperty $ property ) { if ( ! ( ( $ property instanceof ODataBagContent ) || ( $ property instanceof ODataPropertyContent ) ) ) { $ this -> xmlWriter -> writeAttributeNs ( ODataConstants :: ODATA_METADATA_NAMESPACE_PREFIX , ODataConstants :: ATOM_NULL_ATTRIBUTE_NAME , null , ODataConstants :: XML_TRUE_LITERAL ) ; } return $ this ; }
Write null value
Write null value