src/POData/Writers/Json/JsonODataV1Writer.php
/**
	 * Write the given collection of properties.
	 * (properties of an entity or complex type)
	 *
	 * @param ODataPropertyContent $properties Collection of properties.
	 *
	 * @return JsonODataV1Writer
	 */
Write the given collection of properties.
(properties of an entity or complex type)

@param ODataPropertyContent $properties Collection of properties.


Write the given collection of properties . ( properties of an entity or complex type ) @param ODataPropertyContent $properties Collection of properties .
protected function writeProperties(ODataPropertyContent $properties)
	{
		foreach ($properties->properties as $property) {
			$this->writePropertyMeta($property);
			$this->_writer->writeName($property->name);
			if ($property->value == null) {
				$this->_writer->writeValue("null");
			} elseif ($property->value instanceof ODataPropertyContent) {
				$this->writeComplexProperty($property);
			} elseif ($property->value instanceof ODataBagContent) {
				$this->writeBagContent($property->value);
			} else {
				$this->_writer->writeValue($property->value, $property->typeName);
			}
		}
		return $this;
	}
protected function writeProperties ( ODataPropertyContent $ properties ) { foreach ( $ properties -> properties as $ property ) { $ this -> writePropertyMeta ( $ property ) ; $ this -> _writer -> writeName ( $ property -> name ) ; if ( $ property -> value == null ) { $ this -> _writer -> writeValue ( " null " ) ; } elseif ( $ property -> value instanceof ODataPropertyContent ) { $ this -> writeComplexProperty ( $ property ) ; } elseif ( $ property -> value instanceof ODataBagContent ) { $ this -> writeBagContent ( $ property -> value ) ; } else { $ this -> _writer -> writeValue ( $ property -> value , $ property -> typeName ) ; } } return $ this ; }
Write the given collection of properties.
Write the given collection of properties .