Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
25.00% |
1 / 4 |
CRAP | |
25.00% |
1 / 4 |
| RefundResponse | |
0.00% |
0 / 1 |
|
25.00% |
1 / 4 |
10.75 | |
25.00% |
1 / 4 |
| supports(PayURequestInterface $payURequest) | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getOrderId() | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getRefund() | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getStatus() | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| /** | |
| * @author Krzysztof Gzocha <krzysztof.gzocha@xsolve.pl> | |
| */ | |
| namespace Team3\PayU\Communication\Response; | |
| use Team3\PayU\Communication\Request\PayURequestInterface; | |
| use Team3\PayU\Communication\Request\RefundRequest; | |
| use Team3\PayU\Communication\Request\Model\RequestStatus; | |
| use JMS\Serializer\Annotation as JMS; | |
| use Team3\PayU\Communication\Response\Model\RefundModelInterface; | |
| /** | |
| * Represents response from PayU when asked about refund. | |
| * It's connected with {@link RefundRequest} | |
| * | |
| * Class RefundResponse | |
| * @package Team3\PayU\Communication\Response | |
| * @JMS\AccessorOrder("alphabetical") | |
| */ | |
| class RefundResponse implements ResponseInterface | |
| { | |
| /** | |
| * @var string | |
| * @JMS\Type("string") | |
| */ | |
| private $orderId; | |
| /** | |
| * @var RefundModelInterface | |
| * @JMS\Type("Team3\PayU\Communication\Response\Model\RefundModel") | |
| */ | |
| private $refund; | |
| /** | |
| * @var RequestStatus | |
| * @JMS\Type("Team3\PayU\Communication\Request\Model\RequestStatus") | |
| */ | |
| private $status; | |
| /** | |
| * @param PayURequestInterface $payURequest | |
| * | |
| * @return bool | |
| */ | |
| public function supports(PayURequestInterface $payURequest) | |
| { | |
| return $payURequest instanceof RefundRequest; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getOrderId() | |
| { | |
| return $this->orderId; | |
| } | |
| /** | |
| * @return RefundModelInterface | |
| */ | |
| public function getRefund() | |
| { | |
| return $this->refund; | |
| } | |
| /** | |
| * @return RequestStatus | |
| */ | |
| public function getStatus() | |
| { | |
| return $this->status; | |
| } | |
| } |