Completed
Push — master ( 48da13...c8b756 )
by Sullivan
02:22
created

SubscriberCancelTransactionRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 7
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 7
1
<?php
2
3
namespace Nexy\PayboxDirect\Request;
4
5
/**
6
 * @author Sullivan Senechal <[email protected]>
7
 */
8 View Code Duplication
final class SubscriberCancelTransactionRequest extends AbstractReferencedBearerTransactionRequest
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

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.

Loading history...
9
{
10
    use TransactionNumberTrait, CallNumberTrait;
11
12
    /**
13
     * @param string $subscriberRef
14
     * @param string $reference
15
     * @param int    $amount
16
     * @param string $bearer
17
     * @param string $validityDate
18
     * @param int    $transactionNumber
19
     * @param int    $callNumber
20
     */
21
    public function __construct($subscriberRef, $reference, $amount, $bearer, $validityDate, $transactionNumber, $callNumber)
22
    {
23
        parent::__construct($reference, $amount, $bearer, $validityDate, $subscriberRef);
24
25
        $this->transactionNumber = $transactionNumber;
26
        $this->callNumber = $callNumber;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getRequestType()
33
    {
34
        return RequestInterface::SUBSCRIBER_CANCEL_TRANSACTION;
35
    }
36
}
37