PurchasableRecord::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
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