| Total Complexity | 7 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 31.25% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class TransferTransaction implements Transfer |
||
| 10 | { |
||
| 11 | use Commit; |
||
| 12 | |||
| 13 | private $amount = 0; |
||
| 14 | |||
| 15 | private $currency = ''; |
||
| 16 | |||
| 17 | private $recipientIdentifier; |
||
| 18 | |||
| 19 | private $extraOptions; |
||
| 20 | |||
| 21 | 1 | public function __construct( |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function getAmount() |
||
| 37 | { |
||
| 38 | return $this->amount; |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | public function getCurrency() |
||
| 45 | { |
||
| 46 | return $this->currency; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | public function getRecipientIdentifier() |
||
| 53 | { |
||
| 54 | return $this->recipientIdentifier; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function canCommit() |
||
| 58 | { |
||
| 59 | return $this->amount > 0 |
||
| 60 | && !empty($this->recipientIdentifier); |
||
| 61 | } |
||
| 62 | |||
| 63 | public function getExtraOptions() |
||
| 66 | } |
||
| 67 | } |
||
| 68 |