Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | CRAP | |||||||||
| <?php | |
| /** | |
| * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> | |
| */ | |
| namespace Team3\PayU\Communication\Process; | |
| use Team3\PayU\Communication\Request\PayURequestInterface; | |
| use Team3\PayU\Communication\Response\ResponseInterface; | |
| use Team3\PayU\Configuration\ConfigurationInterface; | |
| /** | |
| * This class will help user to make a request to PayU. | |
| * Basing on {@link PayURequestInterface} and {@link ConfigurationInterface} | |
| * it will serialize objects, send request, parse HTTP status code of the response | |
| * and deserialize the response into proper objects. | |
| * | |
| * Interface RequestProcessInterface | |
| * @package Team3\PayU\Communication\Process | |
| */ | |
| interface RequestProcessInterface | |
| { | |
| /** | |
| * @param PayURequestInterface $payURequest | |
| * @param ConfigurationInterface $configuration | |
| * | |
| * @return object | |
| */ | |
| public function process( | |
| PayURequestInterface $payURequest, | |
| ConfigurationInterface $configuration | |
| ); | |
| /** | |
| * @return $this | |
| */ | |
| public function disableValidation(); | |
| /** | |
| * @param ResponseInterface $response | |
| * | |
| * @return $this | |
| */ | |
| public function addResponse(ResponseInterface $response); | |
| } |