1 | <?php |
||
17 | abstract class AbstractResponse implements ResponseInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var ResponseInterface |
||
21 | */ |
||
22 | public $merchant; |
||
23 | |||
24 | /** |
||
25 | * @var RequestInterface |
||
26 | */ |
||
27 | public $request; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | abstract public function redirect(); |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | abstract public function isRedirect(); |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | abstract public function isSuccessful(); |
||
43 | |||
44 | /** |
||
45 | * The instance of payment processing library. |
||
46 | * @return \Omnipay\Common\Message\AbstractResponse|\Payum\Core\Model\Response |
||
47 | */ |
||
48 | abstract public function getWorker(); |
||
49 | |||
50 | public function __call($name, $args) |
||
58 | |||
59 | 1 | public function getFee() |
|
63 | |||
64 | public function getTime() |
||
68 | } |
||
69 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.