src/Mouf/Reflection/MoufReflectionProxy.php
public static function getReturnTypeFromCode($code, $selfEdit) {
		$url = MoufReflectionProxy::getLocalUrlToProject()."src/direct/return_type_from_code.php";

	
		$response = self::performRequest($url,
		[
			"selfedit"=>($selfEdit)?"true":"false",
			"code" => $code
		]);
	
		$obj = @unserialize($response);
	
		if ($obj === false) {
			throw new Exception($response);
		}
	
		return $obj["data"]["class"];
	}
public static function getReturnTypeFromCode($code, $selfEdit) {
		$url = MoufReflectionProxy::getLocalUrlToProject()."src/direct/return_type_from_code.php";

	
		$response = self::performRequest($url,
		[
			"selfedit"=>($selfEdit)?"true":"false",
			"code" => $code
		]);
	
		$obj = @unserialize($response);
	
		if ($obj === false) {
			throw new Exception($response);
		}
	
		return $obj["data"]["class"];
	}
public static function getReturnTypeFromCode ( $ code , $ selfEdit ) { $ url = MoufReflectionProxy :: getLocalUrlToProject ( ) . "src/direct/return_type_from_code.php" ; $ response = self :: performRequest ( $ url , [ "selfedit" => ( $ selfEdit ) ? "true" : "false" , "code" => $ code ] ) ; $ obj = @ unserialize ( $ response ) ; if ( $ obj === false ) { throw new Exception ( $ response ) ; } return $ obj [ "data" ] [ "class" ] ; }
Returns the "return" fully qualified class name from the code passed in parameter.

@param string $code
@param bool $selfEdit
@throws Exception
@return string
Returns the return fully qualified class name from the code passed in parameter .