PurchasableRecord   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 39
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getPurchaseAmount() 0 3 1
A getName() 0 2 1
A getPaymentMethod() 0 2 1
A getIpnURL() 0 3 1
A getConfirmURL() 0 3 1
1
<?php
2
3
namespace ByTIC\Payments\Tests\Fixtures\Records\Purchases;
4
5
use ByTIC\Payments\Models\Methods\Traits\RecordTrait;
6
use ByTIC\Payments\Models\Purchase\Traits\IsPurchasableModelTrait;
7
use Nip\Records\AbstractModels\Record;
8
9
/**
10
 * Class PurchasableRecord
11
 * @package ByTIC\Payments\Tests\Fixtures\Records\Purchases
12
 */
13
class PurchasableRecord extends Record
14
{
15
    use IsPurchasableModelTrait;
16
17
    public $id = 37250;
18
19
    /**
20
     * @return int
21
     */
22
    public function getPurchaseAmount()
23
    {
24
        return 10.00;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getConfirmURL()
31
    {
32
        return 'http://hospice.galantom.ro/donations/confirm?id='.$this->id;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getIpnURL()
39
    {
40
        return 'http://ipn.ro';
41
    }
42
43
    /**
44
     * @return RecordTrait
45
     */
46
    public function getPaymentMethod()
47
    {
48
    }
49
50
    public function getName()
51
    {
52
        // TODO: Implement getName() method.
53
    }
54
}
55