src/Request.php
public static function createFromClient(Client $client, $includeTerminalType = TRUE)
	{
		$request = new Request();

		$request->setInterface($client->getInterface());

		if ($includeTerminalType) {
			$request->setTerminalType($client->getTerminalType());
		}

		return $request;
	}
public static function createFromClient(Client $client, $includeTerminalType = TRUE)
	{
		$request = new Request();

		$request->setInterface($client->getInterface());

		if ($includeTerminalType) {
			$request->setTerminalType($client->getTerminalType());
		}

		return $request;
	}
public static function createFromClient ( Client $ client , $ includeTerminalType = TRUE ) { $ request = new Request ( ) ; $ request -> setInterface ( $ client -> getInterface ( ) ) ; if ( $ includeTerminalType ) { $ request -> setTerminalType ( $ client -> getTerminalType ( ) ) ; } return $ request ; }
Creates the request using information from the client.

@param \StGeorgeIPG\Client $client
@param boolean             $includeTerminalType

@return \StGeorgeIPG\Request
Creates the request using information from the client .