src/POData/Writers/Json/JsonLightODataWriter.php
/**
	 * @param ODataLink $link Link to write.
	 *
	 * @return JsonLightODataWriter
	 */
@param ODataLink $link Link to write.
@param ODataLink $link Link to write .
protected function writeLink(ODataLink $link){
		if($this->metadataLevel == JsonLightMetadataLevel::FULL())
		{
			$this->_writer
				->writeName($link->title . ODataConstants::JSON_LIGHT_METADATA_LINK_NAVIGATION_SUFFIX_STRING)
				->writeValue($link->url);;
		}
		if($link->isExpanded)
		{
			$this->_writer->writeName($link->title);
			if(is_null($link->expandedResult)) {
				$this->_writer->writeValue("null");
			} else {
				$this->writeExpandedLink($link);
			}
		}
		return $this;
	}
protected function writeLink ( ODataLink $ link ) { if ( $ this -> metadataLevel == JsonLightMetadataLevel :: FULL ( ) ) { $ this -> _writer -> writeName ( $ link -> title . ODataConstants :: JSON_LIGHT_METADATA_LINK_NAVIGATION_SUFFIX_STRING ) -> writeValue ( $ link -> url ) ; ; } if ( $ link -> isExpanded ) { $ this -> _writer -> writeName ( $ link -> title ) ; if ( is_null ( $ link -> expandedResult ) ) { $ this -> _writer -> writeValue ( " null " ) ; } else { $ this -> writeExpandedLink ( $ link ) ; } } return $ this ; }
@param ODataLink $link Link to write.
@param ODataLink $link Link to write .
//Interestingly the fullmetadata outputs this metadata..even if the thing is expanded