protected function generateReplacementMethodSignature(\ReflectionFunction $ref, $num)
	{
		$code = 'protected function call_' . $num . '(';
		
		foreach($ref->getParameters() as $i => $param)
		{
			if($i != 0)
			{
				$code .= ', ';
			}
			
			if(NULL !== ($ptype = $this->getParamType($param)))
			{
				$code .= '\\' . $ptype . ' ';
			}
			
			if($param->isPassedByReference())
			{
				$code .= '& ';
			}
			
			$code .= '$' . $param->name;
			
			if($param->isOptional() && $param->isDefaultValueAvailable())
			{
				$code .= ' = ' . var_export($param->getDefaultValue(), true);
			}
		}
		
		return $code . ')';
	}
protected function generateReplacementMethodSignature(\ReflectionFunction $ref, $num)
	{
		$code = 'protected function call_' . $num . '(';
		
		foreach($ref->getParameters() as $i => $param)
		{
			if($i != 0)
			{
				$code .= ', ';
			}
			
			if(NULL !== ($ptype = $this->getParamType($param)))
			{
				$code .= '\\' . $ptype . ' ';
			}
			
			if($param->isPassedByReference())
			{
				$code .= '& ';
			}
			
			$code .= '$' . $param->name;
			
			if($param->isOptional() && $param->isDefaultValueAvailable())
			{
				$code .= ' = ' . var_export($param->getDefaultValue(), true);
			}
		}
		
		return $code . ')';
	}
protected function generateReplacementMethodSignature ( \ ReflectionFunction $ ref , $ num ) { $ code = 'protected function call_' . $ num . '(' ; foreach ( $ ref -> getParameters ( ) as $ i => $ param ) { if ( $ i != 0 ) { $ code .= ', ' ; } if ( NULL !== ( $ ptype = $ this -> getParamType ( $ param ) ) ) { $ code .= '\\' . $ ptype . ' ' ; } if ( $ param -> isPassedByReference ( ) ) { $ code .= '& ' ; } $ code .= '$' . $ param -> name ; if ( $ param -> isOptional ( ) && $ param -> isDefaultValueAvailable ( ) ) { $ code .= ' = ' . var_export ( $ param -> getDefaultValue ( ) , true ) ; } } return $ code . ')' ; }
Generate a signature for a method replacing the given closure.

@param \ReflectionFunction $ref
@param integer $num
@return string
Generate a signature for a method replacing the given closure .