src/POData/Writers/Atom/AtomODataWriter.php
/**
	 *
	 * @param ODataLink $link Link to write.
	 *
	 * @return AtomODataWriter
	 */
@param ODataLink $link Link to write.
@param ODataLink $link Link to write .
protected function writeLink(ODataLink $link)
    {
        $this->writeLinkNode($link, $link->isExpanded);
	    if ($link->isExpanded) {
		    $this->xmlWriter->startElementNS(
			    ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX,
			    ODataConstants::ATOM_INLINE_ELEMENT_NAME,
			    null
		    );
	        if (!is_null($link->expandedResult)) {
		        if ($link->isCollection) {
			        $this->writeFeed($link->expandedResult);
		        } else {
			        $this->writeEntry($link->expandedResult);
		        }
	        }
		    $this->xmlWriter->endElement();
		    $this->xmlWriter->endElement();
	    }
	    return $this;
    }
protected function writeLink ( ODataLink $ link ) { $ this -> writeLinkNode ( $ link , $ link -> isExpanded ) ; if ( $ link -> isExpanded ) { $ this -> xmlWriter -> startElementNS ( ODataConstants :: ODATA_METADATA_NAMESPACE_PREFIX , ODataConstants :: ATOM_INLINE_ELEMENT_NAME , null ) ; if ( ! is_null ( $ link -> expandedResult ) ) { if ( $ link -> isCollection ) { $ this -> writeFeed ( $ link -> expandedResult ) ; } else { $ this -> writeEntry ( $ link -> expandedResult ) ; } } $ this -> xmlWriter -> endElement ( ) ; $ this -> xmlWriter -> endElement ( ) ; } return $ this ; }
@param ODataLink $link Link to write.
@param ODataLink $link Link to write .