src/Mouf/Reflection/TypesDescriptor.php
public function toJson() {
		$array = array("types"=>array());
		foreach ($this->types as $type) {
			$array["types"][] = $type->toJson();
		}
		if ($this->warningMessage) {
			$array["warning"] = $this->warningMessage;
		}
		return $array;
	}
public function toJson() {
		$array = array("types"=>array());
		foreach ($this->types as $type) {
			$array["types"][] = $type->toJson();
		}
		if ($this->warningMessage) {
			$array["warning"] = $this->warningMessage;
		}
		return $array;
	}
public function toJson ( ) { $ array = array ( "types" => array ( ) ) ; foreach ( $ this -> types as $ type ) { $ array [ "types" ] [ ] = $ type -> toJson ( ) ; } if ( $ this -> warningMessage ) { $ array [ "warning" ] = $ this -> warningMessage ; } return $ array ; }
Returns a PHP array representing the TypesDescriptor

@return array
Returns a PHP array representing the TypesDescriptor